Home
last modified time | relevance | path

Searched full:signed (Results 1 – 25 of 3010) sorted by relevance

12345678910>>...121

/llvm-project/clang/lib/Headers/
H A Dvecintrin.h45 static inline __ATTRS_o_ai signed char
46 vec_extract(__vector signed char __vec, int __index) { in vec_extract()
60 static inline __ATTRS_o_ai signed short
61 vec_extract(__vector signed short __vec, int __index) { in vec_extract()
75 static inline __ATTRS_o_ai signed int
76 vec_extract(__vector signed int __vec, int __index) { in vec_extract()
90 static inline __ATTRS_o_ai signed long long
91 vec_extract(__vector signed long long __vec, int __index) { in vec_extract()
119 static inline __ATTRS_o_ai __vector signed char
120 vec_insert(signed cha
[all...]
H A Daltivec.h50 static __inline__ vector signed char __ATTRS_o_ai vec_perm(
51 vector signed char __a, vector signed char __b, vector unsigned char __c);
60 static __inline__ vector short __ATTRS_o_ai vec_perm(vector signed short __a,
61 vector signed short __b,
75 static __inline__ vector int __ATTRS_o_ai vec_perm(vector signed int __a,
76 vector signed int __b,
91 vec_perm(vector signed long long __a, vector signed long long __b,
116 static __inline__ vector signed cha
[all...]
/llvm-project/libcxx/test/std/numerics/numeric.ops/numeric.ops.sat/
H A Dsaturate_cast.pass.cpp26 static_assert(noexcept(std::saturate_cast<signed int>(std::numeric_limits<signed char>::max())));
27 static_assert(noexcept(std::saturate_cast<signed int>(std::numeric_limits<unsigned char>::max())));
29 static_assert(noexcept(std::saturate_cast<unsigned int>(std::numeric_limits<signed char>::max())));
33 static_assert(noexcept(std::saturate_cast<signed long int>(std::numeric_limits<signed long int>::ma…
37 static_assert(noexcept(std::saturate_cast<signed char>(std::numeric_limits<signed int>::max())));
38 static_assert(noexcept(std::saturate_cast<signed char>(std::numeric_limits<unsigned int>::max())));
40 static_assert(noexcept(std::saturate_cast<unsigned char>(std::numeric_limits<signed int>::max())));
67 constexpr auto O_C = static_cast<signed char>(0); in test()
70 constexpr auto O_S = static_cast<signed short int>(0); in test()
73 // signed char in test()
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dsigned-char-misuse.cpp1 // RUN: %check_clang_tidy %s bugprone-signed-char-misuse %t
17 signed char CCharacter = -5; in SimpleVarDeclaration()
19 …ES: [[@LINE-1]]:20: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char… in SimpleVarDeclaration()
25 signed char CCharacter = -5; in SimpleAssignment()
28 …ES: [[@LINE-1]]:16: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char… in SimpleAssignment()
34 signed char CCharacter = -5; in CStyleCast()
37 …ES: [[@LINE-1]]:21: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char… in CStyleCast()
43 signed char CCharacter = -5; in StaticCast()
46 …ES: [[@LINE-1]]:33: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char… in StaticCast()
52 signed char CCharacter = -5; in FunctionalCast()
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/hicpp/
H A Dsigned-bitwise.cpp1 // RUN: %check_clang_tidy %s hicpp-signed-bitwise %t -- -- --target=x86_64-linux
20 AnotherStream &operator<<(signed char c) { return *this; } in operator <<()
23 AnotherStream &operator>>(signed char c) { return *this; } in operator >>()
34 …// CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use of a signed integer operand with a binary bitwise… in binary_bitwise()
36 …// CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use of a signed integer operand with a binary bitwise… in binary_bitwise()
38 …// CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use of a signed integer operand with a binary bitwise… in binary_bitwise()
41 …// CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use of a signed integer operand with a binary bitwise… in binary_bitwise()
43 …// CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use of a signed integer operand with a binary bitwise… in binary_bitwise()
45 …// CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use of a signed integer operand with a binary bitwise… in binary_bitwise()
53 signed char SByte1 = 0; in binary_bitwise()
[all …]
/llvm-project/compiler-rt/test/ubsan/TestCases/ImplicitConversion/
H A Dsigned-integer-truncation-or-sign-change-ignorelist.c3 …N: %clang -fsanitize=implicit-signed-integer-truncation,implicit-integer-sign-change -fno-sanitize…
4 …N: %clang -fsanitize=implicit-signed-integer-truncation,implicit-integer-sign-change -fno-sanitize…
5 …N: %clang -fsanitize=implicit-signed-integer-truncation,implicit-integer-sign-change -fno-sanitize…
6 …N: %clang -fsanitize=implicit-signed-integer-truncation,implicit-integer-sign-change -fno-sanitize…
9 // RUN: echo "[implicit-signed-integer-truncation]" >> %tmp
11 …N: %clang -fsanitize=implicit-signed-integer-truncation,implicit-integer-sign-change -fno-sanitize…
12 …N: %clang -fsanitize=implicit-signed-integer-truncation,implicit-integer-sign-change -fno-sanitize…
13 …N: %clang -fsanitize=implicit-signed-integer-truncation,implicit-integer-sign-change -fno-sanitize…
14 …N: %clang -fsanitize=implicit-signed-integer-truncation,implicit-integer-sign-change -fno-sanitize…
17 // RUN: echo "[implicit-signed-integer-truncation,implicit-integer-sign-change]" >> %tmp
[all …]
H A Dsigned-integer-truncation-incdec.c1 // RUN: %clang -x c -fsanitize=implicit-signed-integer-truncation -O0 %s -o %t && %run %t 2>&1 …
2 // RUN: %clang -x c -fsanitize=implicit-signed-integer-truncation -O1 %s -o %t && %run %t 2>&1 …
3 // RUN: %clang -x c -fsanitize=implicit-signed-integer-truncation -O2 %s -o %t && %run %t 2>&1 …
4 // RUN: %clang -x c -fsanitize=implicit-signed-integer-truncation -O3 %s -o %t && %run %t 2>&1 …
6 // RUN: %clangxx -x c++ -fsanitize=implicit-signed-integer-truncation -O0 %s -o %t && %run %t 2>&1 …
7 // RUN: %clangxx -x c++ -fsanitize=implicit-signed-integer-truncation -O1 %s -o %t && %run %t 2>&1 …
8 // RUN: %clangxx -x c++ -fsanitize=implicit-signed-integer-truncation -O2 %s -o %t && %run %t 2>&1 …
9 // RUN: %clangxx -x c++ -fsanitize=implicit-signed-integer-truncation -O3 %s -o %t && %run %t 2>&1 …
21 …HECK: {{.*}}signed-integer-truncation-incdec.c:[[@LINE-1]]:4: runtime error: implicit conversion f… in test_unsigned()
24 …HECK: {{.*}}signed-integer-truncation-incdec.c:[[@LINE-1]]:3: runtime error: implicit conversion f… in test_unsigned()
[all …]
H A Dsigned-integer-truncation.c1 // RUN: %clang -x c -fsanitize=implicit-signed-integer-truncation %s -DV0 -o %t && %run %t 2>&1…
2 // RUN: %clang -x c -fsanitize=implicit-signed-integer-truncation %s -DV1 -o %t && %run %t 2>&1…
3 // RUN: %clang -x c -fsanitize=implicit-signed-integer-truncation %s -DV2 -o %t && %run %t 2>&1…
4 // RUN: %clang -x c -fsanitize=implicit-signed-integer-truncation %s -DV3 -o %t && %run %t 2>&1…
5 // RUN: %clang -x c -fsanitize=implicit-signed-integer-truncation %s -DV4 -o %t && %run %t 2>&1…
6 // RUN: %clang -x c -fsanitize=implicit-signed-integer-truncation %s -DV5 -o %t && %run %t 2>&1…
7 // RUN: %clang -x c -fsanitize=implicit-signed-integer-truncation %s -DV6 -o %t && %run %t 2>&1…
8 // RUN: %clang -x c -fsanitize=implicit-signed-integer-truncation %s -DV7 -o %t && %run %t 2>&1…
10 // RUN: %clangxx -x c++ -fsanitize=implicit-signed-integer-truncation %s -DV0 -o %t && %run %t 2>&1…
11 // RUN: %clangxx -x c++ -fsanitize=implicit-signed-integer-truncation %s -DV1 -o %t && %run %t 2>&1…
[all …]
H A Dbitfield-conversion.c59 … runtime error: implicit conversion from type 'int' of value -1 (32-bit, signed) to type 'uint8_t'… in test_a()
62 … runtime error: implicit conversion from type 'int' of value -1 (32-bit, signed) to type 'uint8_t'… in test_a()
66 … runtime error: implicit conversion from type 'int' of value 16 (32-bit, signed) to type 'uint8_t'… in test_a()
69 … runtime error: implicit conversion from type 'int' of value 16 (32-bit, signed) to type 'uint8_t'… in test_a()
194 …8-bit, unsigned) to type 'int8_t' (aka '{{(signed )?}}char') changed the value to -64 (7-bit bitfi… in test_c()
196 …6-bit, unsigned) to type 'int8_t' (aka '{{(signed )?}}char') changed the value to -64 (7-bit bitfi… in test_c()
198 …2-bit, unsigned) to type 'int8_t' (aka '{{(signed )?}}char') changed the value to -64 (7-bit bitfi… in test_c()
203 …int' of value -65 (32-bit, signed) to type 'int8_t' (aka '{{(signed )?}}char') changed the value t… in test_c()
206 …int' of value -65 (32-bit, signed) to type 'int8_t' (aka '{{(signed )?}}char') changed the value t… in test_c()
210 …int' of value 64 (32-bit, signed) to type 'int8_t' (aka '{{(signed )?}}char') changed the value to… in test_c()
[all …]
H A Dinteger-arithmetic-value-change.c23 // * Two signs - signed and unsigned
160 …4294967295 (32-bit, unsigned) to type '{{.*}}' (aka 'int') changed the value to -1 (32-bit, signed) in main()
162 … implicit conversion from type '{{.*}}' (aka 'int') of value -1 (32-bit, signed) to type '{{.*}}' … in main()
164 … implicit conversion from type '{{.*}}' (aka 'int') of value -1 (32-bit, signed) to type '{{.*}}' … in main()
166 …rror: implicit conversion from type '{{.*}}' (aka '{{(signed )?}}char') of value -1 (8-bit, signed in main()
168 …255 (8-bit, unsigned) to type '{{.*}}' (aka '{{(signed )?}}char') changed the value to -1 (8-bit, in main()
170 …rror: implicit conversion from type '{{.*}}' (aka '{{(signed )?}}char') of value -1 (8-bit, signed in main()
172 …95 (32-bit, unsigned) to type '{{.*}}' (aka '{{(signed )?}}char') changed the value to -1 (8-bit, in main()
185 …8 (32-bit, unsigned) to type '{{.*}}' (aka 'int') changed the value to -2147483648 (32-bit, signed) in main()
187 … conversion from type '{{.*}}' (aka 'int') of value -2147483648 (32-bit, signed) to type '{{.*}}' … in main()
[all …]
H A Dinteger-conversion.c23 // * Two signs - signed and unsigned
161 …4294967295 (32-bit, unsigned) to type '{{.*}}' (aka 'int') changed the value to -1 (32-bit, signed) in main()
163 … implicit conversion from type '{{.*}}' (aka 'int') of value -1 (32-bit, signed) to type '{{.*}}' … in main()
165 … implicit conversion from type '{{.*}}' (aka 'int') of value -1 (32-bit, signed) to type '{{.*}}' … in main()
167 …rror: implicit conversion from type '{{.*}}' (aka '{{(signed )?}}char') of value -1 (8-bit, signed in main()
169 …255 (8-bit, unsigned) to type '{{.*}}' (aka '{{(signed )?}}char') changed the value to -1 (8-bit, in main()
171 …rror: implicit conversion from type '{{.*}}' (aka '{{(signed )?}}char') of value -1 (8-bit, signed in main()
173 …95 (32-bit, unsigned) to type '{{.*}}' (aka '{{(signed )?}}char') changed the value to -1 (8-bit, in main()
187 …8 (32-bit, unsigned) to type '{{.*}}' (aka 'int') changed the value to -2147483648 (32-bit, signed) in main()
189 … conversion from type '{{.*}}' (aka 'int') of value -2147483648 (32-bit, signed) to type '{{.*}}' … in main()
[all …]
H A Dinteger-sign-change.c21 // * Two signs - signed and unsigned
176 …4294967295 (32-bit, unsigned) to type '{{.*}}' (aka 'int') changed the value to -1 (32-bit, signed) in test_positives()
178 … implicit conversion from type '{{.*}}' (aka 'int') of value -1 (32-bit, signed) to type '{{.*}}' … in test_positives()
180 … implicit conversion from type '{{.*}}' (aka 'int') of value -1 (32-bit, signed) to type '{{.*}}' … in test_positives()
182 …rror: implicit conversion from type '{{.*}}' (aka '{{(signed )?}}char') of value -1 (8-bit, signed in test_positives()
184 …255 (8-bit, unsigned) to type '{{.*}}' (aka '{{(signed )?}}char') changed the value to -1 (8-bit, in test_positives()
186 …rror: implicit conversion from type '{{.*}}' (aka '{{(signed )?}}char') of value -1 (8-bit, signed in test_positives()
188 …95 (32-bit, unsigned) to type '{{.*}}' (aka '{{(signed )?}}char') changed the value to -1 (8-bit, in test_positives()
193 …8 (32-bit, unsigned) to type '{{.*}}' (aka 'int') changed the value to -2147483648 (32-bit, signed) in test_positives()
195 … conversion from type '{{.*}}' (aka 'int') of value -2147483648 (32-bit, signed) to type '{{.*}}' … in test_positives()
[all …]
/llvm-project/clang/test/Frontend/
H A Dfixed_point_div.c2 …nt -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
118 // SIGNED-LABEL: @sdiv_sasausa(
119 // SIGNED-NEXT: entry:
120 // SIGNED-NEXT: [[TMP0:%.*]] = load i16, ptr @sa, align 2
121 // SIGNED-NEXT: [[TMP1:%.*]] = load i16, ptr @usa, align 2
122 // SIGNED-NEXT: [[RESIZE:%.*]] = sext i16 [[TMP0]] to i17
123 // SIGNED-NEXT: [[UPSCALE:%.*]] = shl i17 [[RESIZE]], 1
124 // SIGNED-NEXT: [[RESIZE1:%.*]] = zext i16 [[TMP1]] to i17
125 // SIGNED-NEXT: [[TMP2:%.*]] = call i17 @llvm.sdiv.fix.i17(i17 [[UPSCALE]], i17 [[RESIZE1]], i32…
126 // SIGNED-NEXT: [[DOWNSCALE:%.*]] = ashr i17 [[TMP2]], 1
[all …]
H A Dfixed_point_mul.c2 …nt -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
118 // SIGNED-LABEL: @smul_sasausa(
119 // SIGNED-NEXT: entry:
120 // SIGNED-NEXT: [[TMP0:%.*]] = load i16, ptr @sa, align 2
121 // SIGNED-NEXT: [[TMP1:%.*]] = load i16, ptr @usa, align 2
122 // SIGNED-NEXT: [[RESIZE:%.*]] = sext i16 [[TMP0]] to i17
123 // SIGNED-NEXT: [[UPSCALE:%.*]] = shl i17 [[RESIZE]], 1
124 // SIGNED-NEXT: [[RESIZE1:%.*]] = zext i16 [[TMP1]] to i17
125 // SIGNED-NEXT: [[TMP2:%.*]] = call i17 @llvm.smul.fix.i17(i17 [[UPSCALE]], i17 [[RESIZE1]], i32…
126 // SIGNED-NEXT: [[DOWNSCALE:%.*]] = ashr i17 [[TMP2]], 1
[all …]
H A Dfixed_point_sub.c2 …nt -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
118 // SIGNED-LABEL: @ssub_sasausa(
119 // SIGNED-NEXT: entry:
120 // SIGNED-NEXT: [[TMP0:%.*]] = load i16, ptr @sa, align 2
121 // SIGNED-NEXT: [[TMP1:%.*]] = load i16, ptr @usa, align 2
122 // SIGNED-NEXT: [[RESIZE:%.*]] = sext i16 [[TMP0]] to i17
123 // SIGNED-NEXT: [[UPSCALE:%.*]] = shl i17 [[RESIZE]], 1
124 // SIGNED-NEXT: [[RESIZE1:%.*]] = zext i16 [[TMP1]] to i17
125 // SIGNED-NEXT: [[TMP2:%.*]] = sub i17 [[UPSCALE]], [[RESIZE1]]
126 // SIGNED-NEXT: [[DOWNSCALE:%.*]] = ashr i17 [[TMP2]], 1
[all …]
H A Dfixed_point_add.c2 …nt -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
118 // SIGNED-LABEL: @sadd_sasausa(
119 // SIGNED-NEXT: entry:
120 // SIGNED-NEXT: [[TMP0:%.*]] = load i16, ptr @sa, align 2
121 // SIGNED-NEXT: [[TMP1:%.*]] = load i16, ptr @usa, align 2
122 // SIGNED-NEXT: [[RESIZE:%.*]] = sext i16 [[TMP0]] to i17
123 // SIGNED-NEXT: [[UPSCALE:%.*]] = shl i17 [[RESIZE]], 1
124 // SIGNED-NEXT: [[RESIZE1:%.*]] = zext i16 [[TMP1]] to i17
125 // SIGNED-NEXT: [[TMP2:%.*]] = add i17 [[UPSCALE]], [[RESIZE1]]
126 // SIGNED-NEXT: [[DOWNSCALE:%.*]] = ashr i17 [[TMP2]], 1
[all …]
H A Dfixed_point_conversions.c2 …nt -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
4 …nt -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
163 // SIGNED-LABEL: @fix_sign1(
164 // SIGNED-NEXT: entry:
165 // SIGNED-NEXT: [[TMP0:%.*]] = load i32, ptr @a, align 4
166 // SIGNED-NEXT: [[UPSCALE:%.*]] = shl i32 [[TMP0]], 1
167 // SIGNED-NEXT: store i32 [[UPSCALE]], ptr @ua, align 4
168 // SIGNED-NEXT: ret void
180 // SIGNED-LABEL: @fix_sign2(
181 // SIGNED-NEXT: entry:
[all …]
H A Dfixed_point_unary.c2 …_64-unknown-linux-gnu -ffixed-point -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
54 // SIGNED-LABEL: @inc_ua(
55 // SIGNED-NEXT: entry:
56 // SIGNED-NEXT: [[TMP0:%.*]] = load i32, ptr @ua, align 4
57 // SIGNED-NEXT: [[TMP1:%.*]] = add i32 [[TMP0]], 65536
58 // SIGNED-NEXT: store i32 [[TMP1]], ptr @ua, align 4
59 // SIGNED-NEXT: ret void
72 // SIGNED-LABEL: @inc_usa(
73 // SIGNED-NEXT: entry:
74 // SIGNED-NEXT: [[TMP0:%.*]] = load i16, ptr @usa, align 2
[all …]
H A Dfixed_point_compound.c2 …nt -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
17 signed char c;
38 // SIGNED-LABEL: @add_auf(
39 // SIGNED-NEXT: entry:
40 // SIGNED-NEXT: [[TMP0:%.*]] = load i16, ptr @uf, align 2
41 // SIGNED-NEXT: [[TMP1:%.*]] = load i32, ptr @a, align 4
42 // SIGNED-NEXT: [[RESIZE:%.*]] = sext i32 [[TMP1]] to i33
43 // SIGNED-NEXT: [[UPSCALE:%.*]] = shl i33 [[RESIZE]], 1
44 // SIGNED-NEXT: [[RESIZE1:%.*]] = zext i16 [[TMP0]] to i33
45 // SIGNED-NEXT: [[TMP2:%.*]] = add i33 [[UPSCALE]], [[RESIZE1]]
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/
H A Dnarrowing-conversions-unsigned-char.cpp
/llvm-project/clang/test/Sema/
H A Daltivec-generic-overload.c7 typedef signed char __v16sc __attribute__((__vector_size__(16)));
9 typedef signed short __v8ss __attribute__((__vector_size__(16)));
11 typedef signed int __v4si __attribute__((__vector_size__(16)));
13 typedef signed long long __v2sll __attribute__((__vector_size__(16)));
15 typedef signed __int128 __v1slll __attribute__((__vector_size__(16)));
20 __v16sc *__attribute__((__overloadable__)) convert1(vector signed char);
22 __v8ss *__attribute__((__overloadable__)) convert1(vector signed short);
24 __v4si *__attribute__((__overloadable__)) convert1(vector signed int);
26 __v2sll *__attribute__((__overloadable__)) convert1(vector signed long long);
32 vector signed char *__attribute__((__overloadable__)) convert2(__v16sc);
[all …]
/llvm-project/clang/lib/AST/Interp/
H A DIntegralAP.h
/llvm-project/clang/test/CodeGenCXX/
H A Dcatch-implicit-integer-truncations.cpp2 …teger-truncation,implicit-signed-integer-truncation -fno-sanitize-recover=implicit-unsigned-intege…
3 …integer-truncation,implicit-signed-integer-truncation -fsanitize-recover=implicit-unsigned-integer…
4 …-integer-truncation,implicit-signed-integer-truncation -fsanitize-trap=implicit-unsigned-integer-t…
50 unsigned char explicit_signed_int_to_unsigned_char(signed int src) { in explicit_signed_int_to_unsigned_char()
57 signed char explicit_unsigned_int_to_signed_char(unsigned int src) { in explicit_unsigned_int_to_signed_char()
60 return (signed char)src; in explicit_unsigned_int_to_signed_char()
64 signed char explicit_signed_int_to_signed_char(signed int src) { in explicit_signed_int_to_signed_char()
67 return (signed char)src; in explicit_signed_int_to_signed_char()
81 signed int explicit_signed_int_to_signed_int(signed int src) { in explicit_signed_int_to_signed_int()
84 return (signed int)src; in explicit_signed_int_to_signed_int()
[all …]
/llvm-project/clang/test/CodeGen/
H A Dcatch-implicit-signed-integer-truncations-basics-negatives.c1 // RUN: %clang_cc1 -fsanitize=implicit-signed-integer-truncation -fsanitize-recover=implicit-signed
7 __attribute__((no_sanitize("undefined"))) signed char ignorelist_0_convert_signed_int_to_signed_cha… in ignorelist_0_convert_signed_int_to_signed_char()
15 __attribute__((no_sanitize("integer"))) signed char ignorelist_1_convert_signed_int_to_signed_char( in ignorelist_1_convert_signed_int_to_signed_char()
20 …ute__((no_sanitize("implicit-conversion"))) signed char ignorelist_2_convert_signed_int_to_signed_… in ignorelist_2_convert_signed_int_to_signed_char()
25 …o_sanitize("implicit-integer-truncation"))) signed char ignorelist_3_convert_signed_int_to_signed_… in ignorelist_3_convert_signed_int_to_signed_char()
30 …ute__((no_sanitize("implicit-signed-integer-truncation"))) signed char ignorelist_4_convert_signed… in ignorelist_4_convert_signed_int_to_signed_char()
35 …e("implicit-unsigned-integer-truncation"))) signed char ignorelist_5_convert_signed_int_to_signed_… in ignorelist_5_convert_signed_int_to_signed_char()
36 // This is an signed truncation, not unsigned-one. in ignorelist_5_convert_signed_int_to_signed_char()
H A Dcatch-implicit-signed-integer-truncations-basics.c1 // RUN: %clang_cc1 -fsanitize=implicit-signed-integer-truncation -fsanitize-recover=implicit-signed
5 // * Two signs - signed and unsigned
29 signed int convert_signed_int_to_signed_int(signed int x) { in convert_signed_int_to_signed_int()
35 signed char convert_signed_char_to_signed_char(signed char x) { in convert_signed_char_to_signed_char()
53 signed int convert_unsigned_char_to_signed_int(unsigned char x) { in convert_unsigned_char_to_signed_int()
59 signed int convert_signed_char_to_signed_int(signed char x) { in convert_signed_char_to_signed_int()
65 signed int convert_unsigned_int_to_signed_int(unsigned int x) { in convert_unsigned_int_to_signed_int()
71 unsigned int convert_signed_int_to_unsigned_int(signed int x) { in convert_signed_int_to_unsigned_int()
77 unsigned char convert_signed_int_to_unsigned_char(signed int x) { in convert_signed_int_to_unsigned_char()
84 unsigned char convert_signed_char_to_unsigned_char(signed char x) { in convert_signed_char_to_unsigned_char()
[all …]

12345678910>>...121