| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | Atomics.c | 6 unsigned char uc; variable 79 uc = __sync_fetch_and_add (&uc, 11); // CHECK: atomicrmw add in test_fetch_and_op() 97 uc = __sync_fetch_and_or (&uc, 11); // CHECK: atomicrmw or in test_fetch_and_op() 137 uc = __sync_add_and_fetch (&uc, uc); // CHECK: atomicrmw add in test_op_and_fetch() 146 uc = __sync_sub_and_fetch (&uc, uc); // CHECK: atomicrmw sub in test_op_and_fetch() 155 uc = __sync_or_and_fetch (&uc, uc); // CHECK: atomicrmw or in test_op_and_fetch() 164 uc = __sync_xor_and_fetch (&uc, uc); // CHECK: atomicrmw xor in test_op_and_fetch() 176 uc = __sync_nand_and_fetch (&uc, uc); // CHECK: atomicrmw nand in test_op_and_fetch() 214 uc = __sync_and_and_fetch (&uc, uc); // CHECK: atomicrmw and in test_op_and_fetch() 230 uc = __sync_val_compare_and_swap (&uc, uc, sc); in test_compare_and_swap() [all …]
|
| H A D | ubsan-promoted-arith.cpp | 21 uchar add2(uchar uc) { return uc + uc; } in add2() argument 37 uchar sub2(uchar uc) { return uc - uc; } in sub2() argument 55 uchar mul2(uchar uc) { return uc * uc; } in mul2() argument 81 uchar div2(uchar uc) { return uc / uc; } in div2() argument 103 uchar rem2(uchar uc) { return uc % uc; } in rem2() argument 119 uchar inc2(uchar uc) { return uc++ + (uchar)0; } in inc2() argument 127 void inc4(uchar uc) { uc++; } in inc4() argument
|
| H A D | complex-convert.c | 131 csc1 = uc; in foo() 161 cuc1 = uc; in foo() 192 csll1 = uc; in foo() 222 cull1 = uc; in foo() 308 csc1 = uc + csc; in foo() 326 cuc1 = uc + cuc; in foo() 344 csll1 = uc + csll; in foo() 358 cull1 = uc + cull; in foo() 502 csc1 = csc + uc; in foo() 568 cuc1 = cuc + uc; in foo() [all …]
|
| H A D | Nontemporal.cpp | 5 unsigned char uc; variable 22 __builtin_nontemporal_store(1, &uc); // CHECK: store i8{{.*}}align 1, !nontemporal in test_all_sizes() 36 uc = __builtin_nontemporal_load(&sc); // CHECK: load i8{{.*}}align 1, !nontemporal in test_all_sizes() 37 sc = __builtin_nontemporal_load(&uc); // CHECK: load i8{{.*}}align 1, !nontemporal in test_all_sizes()
|
| H A D | nvptx-inlineasm-ptx.c | 6 unsigned char uc; in constraints() local 19 asm volatile ("mov.b8 %0, %1;" : "=c"(uc) : "c"(uc)); in constraints()
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | zvector.c | 360 uc = uc + uc2; in foo() 364 uc = uc + bc2; in foo() 438 uc = uc - uc2; in foo() 473 uc = uc * uc2; in foo() 507 uc = uc / uc2; in foo() 541 uc = uc % uc2; in foo() 580 uc = uc & uc2; in foo() 584 uc = uc & bc2; in foo() 640 uc = uc | uc2; in foo() 674 uc = uc ^ uc2; in foo() [all …]
|
| H A D | format-type-confusion.c | 15 unsigned char uc = 0; in main() local 17 …uc, // expected-warning {{format specifies type 'short' but the argument has type 'unsigned char'}} in main() 18 …uc, // expected-warning {{format specifies type 'unsigned short' but the argument has type 'unsign… in main() 19 uc, uc, uc, uc, uc); in main()
|
| H A D | incompatible-sign.c | 17 extern unsigned char uc[]; in unsignedCharToPlainChar() 18 …char *p = uc; // expected-warning {{converts between pointers to integer types where one is of the… in unsignedCharToPlainChar() 19 …(void) (char *[]){ [42] = uc }; // expected-warning {{converts between pointers to integer types w… in unsignedCharToPlainChar() 20 …p = uc; // expected-warning {{converts between pointers to integer types where one is of the uniqu… in unsignedCharToPlainChar() 21 …unsignedCharToPlainChar(uc); // expected-warning {{converts between pointers to integer types wher… in unsignedCharToPlainChar() 22 …return uc; // expected-warning {{converts between pointers to integer types where one is of the un… in unsignedCharToPlainChar()
|
| H A D | tautological-unsigned-char-zero-compare.cc | 11 void f(char c, unsigned char uc, signed char cc) { in f() argument 15 if (uc < 0) in f() 26 void ref(char &c, unsigned char &uc, signed char &cc) { in ref() argument 30 if (uc < 0) in ref()
|
| /llvm-project-15.0.7/clang/test/CodeGen/SystemZ/ |
| H A D | zvector.c | 414 uc = uc + uc2; in test_add() 415 uc = uc + bc2; in test_add() 644 uc = uc - uc2; in test_sub() 645 uc = uc - bc2; in test_sub() 808 uc = uc * uc2; in test_mul() 918 uc = uc / uc2; in test_div() 1024 uc = uc % uc2; in test_rem() 1261 uc = uc & uc2; in test_and() 1262 uc = uc & bc2; in test_and() 2069 uc = uc << 5; in test_sl() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/tsan/ |
| H A D | fiber_two_threads.cpp | 9 ucontext_t uc, orig_uc[2]; variable 17 swapcontext(&uc, &orig_uc[0]); in switch0() 24 swapcontext(&uc, &orig_uc[1]); in func() 33 swapcontext(&orig_uc[1], &uc); in Thread() 45 getcontext(&uc); in main() 46 uc.uc_stack.ss_sp = stack; in main() 47 uc.uc_stack.ss_size = sizeof(stack); in main() 48 uc.uc_link = 0; in main() 49 makecontext(&uc, func, 0); in main() 52 swapcontext(&orig_uc[0], &uc); in main()
|
| H A D | fiber_simple.cpp | 9 ucontext_t uc, orig_uc; variable 17 swapcontext(&uc, &orig_uc); in func() 23 getcontext(&uc); in main() 24 uc.uc_stack.ss_sp = stack; in main() 25 uc.uc_stack.ss_size = sizeof(stack); in main() 26 uc.uc_link = 0; in main() 27 makecontext(&uc, func, 0); in main() 30 swapcontext(&orig_uc, &uc); in main()
|
| H A D | fiber_race.cpp | 9 ucontext_t uc, orig_uc; variable 17 swapcontext(&uc, &orig_uc); in func() 23 getcontext(&uc); in main() 24 uc.uc_stack.ss_sp = stack; in main() 25 uc.uc_stack.ss_size = sizeof(stack); in main() 26 uc.uc_link = 0; in main() 27 makecontext(&uc, func, 0); in main() 30 swapcontext(&orig_uc, &uc); in main()
|
| H A D | fiber_from_thread.cpp | 9 ucontext_t uc, orig_uc1, orig_uc2; variable 25 swapcontext(&uc, &orig_uc1); in func() 31 getcontext(&uc); in main() 32 uc.uc_stack.ss_sp = stack; in main() 33 uc.uc_stack.ss_size = sizeof(stack); in main() 34 uc.uc_link = 0; in main() 35 makecontext(&uc, func, 0); in main() 38 swapcontext(&orig_uc1, &uc); in main()
|
| H A D | fiber_longjmp.cpp | 56 ucontext_t uc, orig_uc; in main() local 57 getcontext(&uc); in main() 58 uc.uc_stack.ss_sp = stack; in main() 59 uc.uc_stack.ss_size = sizeof(stack); in main() 60 uc.uc_link = 0; in main() 61 makecontext(&uc, func, 0); in main() 64 swapcontext(&orig_uc, &uc); in main()
|
| H A D | fiber_asm.cpp | 70 ucontext uc, orig_uc; variable 74 ucontext_switch(&uc, &orig_uc); in func() 78 ucontext_init(&uc, stack, sizeof(stack), func, 0); in main() 79 ucontext_switch(&orig_uc, &uc); in main() 80 ucontext_free(&uc); in main()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | Atomics-64.ll | 6 @uc = common global i8 0 89 store i8 %1, ptr @uc, align 1 109 store i8 %11, ptr @uc, align 1 129 store i8 %21, ptr @uc, align 1 149 store i8 %31, ptr @uc, align 1 169 store i8 %41, ptr @uc, align 1 189 store i8 %51, ptr @uc, align 1 214 %0 = load i8, ptr @uc, align 1 220 %5 = load i8, ptr @uc, align 1 225 store i8 %9, ptr @uc, align 1 [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/ |
| H A D | narrowing-conversions.cpp | 133 uc = s; in narrow_integer_to_unsigned_integer_is_ok() 134 uc = i; in narrow_integer_to_unsigned_integer_is_ok() 135 uc = l; in narrow_integer_to_unsigned_integer_is_ok() 136 uc = ll; in narrow_integer_to_unsigned_integer_is_ok() 138 uc = uc; in narrow_integer_to_unsigned_integer_is_ok() 139 uc = us; in narrow_integer_to_unsigned_integer_is_ok() 140 uc = ui; in narrow_integer_to_unsigned_integer_is_ok() 141 uc = ul; in narrow_integer_to_unsigned_integer_is_ok() 168 c = uc; in narrow_integer_to_signed_integer_is_not_ok() 187 i = uc; in narrow_integer_to_signed_integer_is_not_ok() [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/ |
| H A D | Atomics-64.ll | 13 @uc = common global i8 0 120 store i8 %1, i8* @uc, align 1 142 store i8 %15, i8* @uc, align 1 164 store i8 %29, i8* @uc, align 1 186 store i8 %43, i8* @uc, align 1 208 store i8 %57, i8* @uc, align 1 230 store i8 %71, i8* @uc, align 1 257 %0 = load i8, i8* @uc, align 1 261 %3 = load i8, i8* @uc, align 1 264 store i8 %5, i8* @uc, align 1 [all …]
|
| /llvm-project-15.0.7/libunwind/src/ |
| H A D | UnwindLevel1.c | 76 __unw_init_local(cursor, uc); in unwind_phase1() 172 __unw_init_local(cursor, uc); in unwind_phase2() 293 __unw_init_local(cursor, uc); in unwind_phase2_forced() 403 unw_context_t uc; in _Unwind_RaiseException() local 405 __unw_getcontext(&uc); in _Unwind_RaiseException() 418 return unwind_phase2(&uc, &cursor, exception_object); in _Unwind_RaiseException() 437 unw_context_t uc; in _Unwind_Resume() local 439 __unw_getcontext(&uc); in _Unwind_Resume() 446 unwind_phase2(&uc, &cursor, exception_object); in _Unwind_Resume() 462 unw_context_t uc; in _Unwind_ForcedUnwind() local [all …]
|
| H A D | UnwindLevel1-gcc-ext.c | 88 unw_context_t uc; in _Unwind_FindEnclosingFunction() local 90 __unw_getcontext(&uc); in _Unwind_FindEnclosingFunction() 91 __unw_init_local(&cursor, &uc); in _Unwind_FindEnclosingFunction() 104 unw_context_t uc; in _Unwind_Backtrace() local 105 __unw_getcontext(&uc); in _Unwind_Backtrace() 106 __unw_init_local(&cursor, &uc); in _Unwind_Backtrace() 186 unw_context_t uc; in _Unwind_Find_FDE() local 188 __unw_getcontext(&uc); in _Unwind_Find_FDE() 189 __unw_init_local(&cursor, &uc); in _Unwind_Find_FDE()
|
| /llvm-project-15.0.7/llvm/test/Transforms/ConstraintElimination/ |
| H A D | mixed-signed-unsigned-predicates.ll | 65 %res.11 = xor i1 %uc.3, %uc.4 113 %res.8 = xor i1 %res.7, %uc.2 184 %res.11 = xor i1 %uc.3, %uc.4 305 %res.11 = xor i1 %uc.3, %uc.4 413 %uc.1 = icmp ule i32 %x, %z 414 %uc.2 = icmp ule i32 %x, %y 415 %res.1 = xor i1 %uc.1, %uc.2 417 %uc.3 = icmp ule i32 %y, %z 420 %uc.4 = icmp ule i32 %x, %a 438 %uc.5 = icmp ule i32 %x, %z [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenOpenCL/ |
| H A D | arm-integer-dot-product.cl | 16 void test_accumulate_int8(uchar4 ua, uchar4 ub, uint uc, char4 sa, char4 sb, int c) { 17 uint ur = arm_dot_acc(ua, ub, uc); 25 void test_accumulate_int16(ushort2 ua, ushort2 ub, uint uc, short2 sa, short2 sb, int c) { 26 uint ur = arm_dot_acc(ua, ub, uc); 34 void test_accumulate_saturate_int8(uchar4 ua, uchar4 ub, uint uc, char4 sa, char4 sb, int c) { 35 uint ur = arm_dot_acc_sat(ua, ub, uc);
|
| /llvm-project-15.0.7/compiler-rt/lib/hwasan/ |
| H A D | hwasan_linux.cpp | 323 static AccessInfo GetAccessInfo(siginfo_t *info, ucontext_t *uc) { in GetAccessInfo() argument 340 const uptr addr = uc->uc_mcontext.regs[0]; in GetAccessInfo() 344 const uptr size = size_log == 0xf ? uc->uc_mcontext.regs[1] : 1U << size_log; in GetAccessInfo() 350 uptr pc = (uptr)uc->uc_mcontext.gregs[REG_RIP]; in GetAccessInfo() 359 const uptr addr = uc->uc_mcontext.gregs[REG_RDI]; in GetAccessInfo() 364 size_log == 0xf ? uc->uc_mcontext.gregs[REG_RSI] : 1U << size_log; in GetAccessInfo() 373 static bool HwasanOnSIGTRAP(int signo, siginfo_t *info, ucontext_t *uc) { in HwasanOnSIGTRAP() argument 374 AccessInfo ai = GetAccessInfo(info, uc); in HwasanOnSIGTRAP() 378 SignalContext sig{info, uc}; in HwasanOnSIGTRAP() 379 HandleTagMismatch(ai, StackTrace::GetNextInstructionPc(sig.pc), sig.bp, uc); in HwasanOnSIGTRAP() [all …]
|
| /llvm-project-15.0.7/libunwind/test/ |
| H A D | signal_frame.pass.cpp | 31 unw_context_t uc; in test() local 32 unw_getcontext(&uc); in test() 33 unw_init_local(&cursor, &uc); in test()
|