Home
last modified time | relevance | path

Searched refs:U8 (Results 1 – 22 of 22) sorted by relevance

/llvm-project-15.0.7/clang/test/Analysis/
H A Dconversion.c6 unsigned char U8; variable
11 U8 = S; // expected-warning {{Loss of sign in implicit conversion}} in assign()
15 U8 = S; // no-warning in assign()
23 U8 += L; // expected-warning {{Loss of precision in implicit conversion}} in addAssign()
46 U8 /= L; // no-warning in divAssign()
53 U8 %= L; // no-warning in remAssign()
60 U8 &= L; // no-warning in andAssign()
126 U8 = S; // It might be known that S is always 0x00-0xff. in dontwarn1()
129 U8 = -1; // Explicit conversion. in dontwarn1()
132 U8 &= U; // No loss of precision since there is &=. in dontwarn1()
[all …]
H A Dconversion-tracking-notes.c7 unsigned char U8; variable
13 U8 *= L; // expected-warning {{Loss of precision in implicit conversion}} in track_assign()
/llvm-project-15.0.7/compiler-rt/test/builtins/Unit/
H A Datomic_test.c163 a8 = U8(value); in set_a_values()
173 b8 = U8(value); in set_b_values()
311 if (__atomic_exchange_1(&a8, U8(V + m + 1), model) != U8(V + m)) in test_exchanges()
378 if (a8 != U8(ONES) || b8 != U8(ONES)) in test_compare_exchanges()
382 if (a8 != U8(V + m1) || b8 != U8(ONES)) in test_compare_exchanges()
444 if (b8 != U8(V + m) || a8 != U8(V + m + ONES)) in test_fetch_op()
466 if (b8 != U8(V + m) || a8 != U8(V + m - ONES)) in test_fetch_op()
488 if (b8 != U8(V + m) || a8 != U8(V + m)) in test_fetch_op()
510 if (b8 != U8(V + m) || a8 != U8((V + m) | ONES)) in test_fetch_op()
532 if (b8 != U8(V + m) || a8 != U8((V + m) ^ ONES)) in test_fetch_op()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/SPIRV/instructions/
H A Dinteger-casts.ll27 ; CHECK-DAG: [[U8:%.*]] = OpTypeInt 8 0
30 ; CHECK-DAG: [[U8v4:%.*]] = OpTypeVector [[U8]] 4
44 ; CHECK: [[TRUNC32_8]] = OpFunction [[U8]]
47 ; CHECK: [[R:%.*]] = OpUConvert [[U8]] [[A]]
55 ; CHECK: [[TRUNC16_8]] = OpFunction [[U8]]
58 ; CHECK: [[R:%.*]] = OpUConvert [[U8]] [[A]]
68 ; CHECK-NEXT: [[A:%.*]] = OpFunctionParameter [[U8]]
79 ; CHECK-NEXT: [[A:%.*]] = OpFunctionParameter [[U8]]
101 ; CHECK-NEXT: [[A:%.*]] = OpFunctionParameter [[U8]]
112 ; CHECK-NEXT: [[A:%.*]] = OpFunctionParameter [[U8]]
H A Dfloat-casts.ll33 ; CHECK-DAG: [[U8:%.*]] = OpTypeInt 8 0
36 ; CHECK-DAG: [[U8v2:%.*]] = OpTypeVector [[U8]] 2
105 ; CHECK: [[F32toS8]] = OpFunction [[U8]]
108 ; CHECK: [[R:%.*]] = OpConvertFToS [[U8]] [[A]]
138 ; CHECK: [[F16toS8]] = OpFunction [[U8]]
141 ; CHECK: [[R:%.*]] = OpConvertFToS [[U8]] [[A]]
/llvm-project-15.0.7/compiler-rt/lib/msan/tests/
H A Dmsan_test.cpp2925 U8 b;
3001 U8 a8, b8;
3976 U8 y8 = 0; in TEST()
4045 U8 y = 0; in TEST()
4077 U8 y = 0; in TEST()
4165 V2x64 s = {Poisoned<U8>(), Poisoned<U8>()}; in TEST()
4287 c = _mm_cmpneq_sd(V2x64{1, Poisoned<U8>()}, V2x64{2, Poisoned<U8>()}); in TEST()
4289 c = _mm_cmpneq_sd(V2x64{1, Poisoned<U8>()}, V2x64{1, Poisoned<U8>()}); in TEST()
4387 BinaryOpOriginTest<U8>(ADD<U8>); in TEST()
4799 U8 y = Poisoned<U8>(0, 0xFF00); in TestPDEP()
[all …]
/llvm-project-15.0.7/clang/test/Sema/
H A Dtest-wunaligned-access.cpp69 struct __attribute__((packed)) U8 { struct
258 struct U8 s8;
H A Dtest-wunaligned-access.c64 struct U8 { struct
470 struct U8 s8;
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DSourceCode.cpp62 static bool iterateCodepoints(llvm::StringRef U8, const Callback &CB) { in iterateCodepoints() argument
66 for (size_t I = 0; I < U8.size();) { in iterateCodepoints()
67 unsigned char C = static_cast<unsigned char>(U8[I]); in iterateCodepoints()
80 elog("File has invalid UTF-8 near offset {0}: {1}", I, llvm::toHex(U8)); in iterateCodepoints()
104 static size_t measureUnits(llvm::StringRef U8, int Units, OffsetEncoding Enc, in measureUnits() argument
115 Valid = iterateCodepoints(U8, [&](int U8Len, int U16Len) { in measureUnits()
124 Valid = iterateCodepoints(U8, [&](int U8Len, int U16Len) { in measureUnits()
134 if (Result > U8.size()) { in measureUnits()
136 return U8.size(); in measureUnits()
/llvm-project-15.0.7/compiler-rt/lib/asan/tests/
H A Dasan_test_utils.h60 typedef uint64_t U8; typedef
/llvm-project-15.0.7/llvm/test/tools/llvm-opt-report/
H A Dfunc-3.test12 ; CHECK-NEXT: 3 U8 | for (int i = 0; i < n; ++i)
/llvm-project-15.0.7/llvm/test/DebugInfo/PDB/Inputs/
H A Devery-enum.cpp36 enum U8 : uint8_t { enum
/llvm-project-15.0.7/llvm/lib/Demangle/
H A DRustDemangle.cpp48 U8, enumerator
413 Type = BasicType::U8; in parseBasicType()
488 case BasicType::U8: in printBasicType()
748 case BasicType::U8: in demangleConst()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DStringRefTest.cpp666 uint8_t U8; in TEST() local
672 bool U8Success = StringRef(Unsigned[i].Str).getAsInteger(0, U8); in TEST()
675 EXPECT_EQ(U8, Unsigned[i].Expected); in TEST()
827 uint8_t U8; in TEST() local
834 bool U8Success = Str.consumeInteger(0, U8); in TEST()
838 EXPECT_EQ(U8, ConsumeUnsigned[i].Expected); in TEST()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPULibFunc.cpp626 case 'h': res.ArgType = AMDGPULibFunc::U8; break; in parseItaniumParam()
732 case AMDGPULibFunc::U8: return "h"; in getItaniumTypeName()
883 case AMDGPULibFunc::U8: in getIntrinsicParamType()
H A DAMDGPULibFunc.h263 U8 = UINT | B8, enumerator
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DAMDGPUMetadata.h103 U8 = 2, enumerator
/llvm-project-15.0.7/clang/test/Misc/
H A Ddiag-template-diffing.cpp234 template<typename T> using U8 = S8<int, char, T>; typedef
236 int k8 = f8(U8<char>());
/llvm-project-15.0.7/llvm/lib/Support/
H A DAMDGPUMetadata.cpp78 YIO.enumCase(EN, "U8", ValueType::U8); in enumeration()
/llvm-project-15.0.7/llvm/test/DebugInfo/PDB/Native/
H A Dpdb-native-enums.test37 ENUMS: enum U8 : unsigned char {
351 DUMP: name: U8
/llvm-project-15.0.7/llvm/unittests/DebugInfo/GSYM/
H A DGSYMTest.cpp567 const uint8_t U8 = 0x10; in TestFileWriterHelper() local
572 FW.writeU8(U8); in TestFileWriterHelper()
591 EXPECT_EQ(Data.getU8(&Offset), U8); in TestFileWriterHelper()
/llvm-project-15.0.7/clang/test/Modules/
H A Dodr_hash.cpp1576 using U8 = S8<T>; typedef
2898 struct U8 {}; struct
2900 template <template<int> class x = U8> void foo();