Home
last modified time | relevance | path

Searched refs:oldval (Results 1 – 25 of 35) sorted by relevance

12

/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Dllvm.amdgcn.writelane.ll12 %oldval = load i32, i32 addrspace(1)* %out
13 %writelane = call i32 @llvm.amdgcn.writelane(i32 %src0, i32 %src1, i32 %oldval)
21 %oldval = load i32, i32 addrspace(1)* %out
22 %writelane = call i32 @llvm.amdgcn.writelane(i32 32, i32 %src1, i32 %oldval)
34 %oldval = load i32, i32 addrspace(1)* %out
36 %writelane = call i32 @llvm.amdgcn.writelane(i32 12, i32 %lane, i32 %oldval)
47 %oldval = load i32, i32 addrspace(1)* %out
49 %writelane = call i32 @llvm.amdgcn.writelane(i32 %m0, i32 %src1, i32 %oldval)
57 %oldval = load i32, i32 addrspace(1)* %out
58 %writelane = call i32 @llvm.amdgcn.writelane(i32 %src0, i32 32, i32 %oldval) #0
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.replace/
H A Dranges.replace.pass.cpp61 int oldval; member
71 d.oldval, in test()
79 std::same_as<Iter> decltype(auto) ret = std::ranges::replace(range, d.oldval, d.newval); in test()
88 …test<Iter, Sent, 4>({.input = {1, 2, 3, 4}, .oldval = 2, .newval = 23, .expected = {1, 23, 3, 4}}); in test_iterators()
90 test<Iter, Sent, 4>({.input = {1, 2, 3, 4}, .oldval = 5, .newval = 23, .expected = {1, 2, 3, 4}}); in test_iterators()
92 …test<Iter, Sent, 4>({.input = {1, 1, 1, 1}, .oldval = 1, .newval = 23, .expected = {23, 23, 23, 23… in test_iterators()
94 test<Iter, Sent, 0>({.input = {}, .oldval = 1, .newval = 23, .expected = {}}); in test_iterators()
96 test<Iter, Sent, 1>({.input = {1}, .oldval = 1, .newval = 2, .expected = {2}}); in test_iterators()
/llvm-project-15.0.7/clang/test/Sema/
H A Dsync-implicit-seq_cst.c20 void bool_compare_and_swap(int *ptr, int oldval, int newval) { __sync_bool_compare_and_swap(ptr, ol… in bool_compare_and_swap() argument
21 void val_compare_and_swap(int *ptr, int oldval, int newval) { __sync_val_compare_and_swap(ptr, oldv… in val_compare_and_swap() argument
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dasm-inout.c35 unsigned char oldval; in test4() local
37 __asm__ ("frob %0" : "=r"(oldval) : "0"(0xff)); in test4()
38 return (int)oldval; in test4()
/llvm-project-15.0.7/llvm/test/CodeGen/AArch64/GlobalISel/
H A Dirtranslator-atomic-metadata.ll13 %oldval = atomicrmw volatile add i32* %ptr, i32 1 monotonic
14 ret i32 %oldval
26 %oldval = atomicrmw add i32* %ptr, i32 1 monotonic, !falkor.strided.access !0
27 ret i32 %oldval
39 %oldval = atomicrmw volatile add i32* %ptr, i32 1 monotonic, !falkor.strided.access !0
40 ret i32 %oldval
H A Darm64-irtranslator.ll2072 %oldval.trunc = trunc i256 %oldval to i32
2089 %oldval.trunc = trunc i256 %oldval to i32
2106 %oldval.trunc = trunc i256 %oldval to i32
2123 %oldval.trunc = trunc i256 %oldval to i32
2140 %oldval.trunc = trunc i256 %oldval to i32
2157 %oldval.trunc = trunc i256 %oldval to i32
2174 %oldval.trunc = trunc i256 %oldval to i32
2191 %oldval.trunc = trunc i256 %oldval to i32
2208 %oldval.trunc = trunc i256 %oldval to i32
2225 %oldval.trunc = trunc i256 %oldval to i32
[all …]
H A Darm64-atomic-128.ll8 define void @val_compare_and_swap(i128* %p, i128 %oldval, i128 %newval) {
87 %pair = cmpxchg i128* %p, i128 %oldval, i128 %newval acquire acquire
93 define void @val_compare_and_swap_monotonic_seqcst(i128* %p, i128 %oldval, i128 %newval) {
172 %pair = cmpxchg i128* %p, i128 %oldval, i128 %newval monotonic seq_cst
178 define void @val_compare_and_swap_release_acquire(i128* %p, i128 %oldval, i128 %newval) {
257 %pair = cmpxchg i128* %p, i128 %oldval, i128 %newval release acquire
263 define void @val_compare_and_swap_monotonic(i128* %p, i128 %oldval, i128 %newval) {
341 %pair = cmpxchg i128* %p, i128 %oldval, i128 %newval release acquire
/llvm-project-15.0.7/llvm/test/Transforms/AtomicExpand/ARM/
H A Dcmpxchg-weak.ll43 %oldval = extractvalue { i32, i1 } %pair, 0
44 ret i32 %oldval
82 %oldval = extractvalue { i32, i1 } %pair, 1
83 ret i1 %oldval
125 %oldval = extractvalue { i32, i1 } %pair, 0
126 ret i32 %oldval
168 %oldval = extractvalue { i32, i1 } %pair, 0
169 ret i32 %oldval
H A Datomic-expansion-v7.ll461 %oldval = extractvalue { i32, i1 } %pair, 0
462 ret i32 %oldval
/llvm-project-15.0.7/llvm/test/CodeGen/AArch64/
H A Dbitfield-insert.ll40 %oldval = load volatile i32, i32* %existing
61 %oldval = load volatile i64, i64* %existing
83 %oldval = load volatile i64, i64* %existing
105 %oldval = load volatile i32, i32* %existing
106 %oldval_keep = and i32 %oldval, 135 ; = 0x87
127 %oldval = load volatile i64, i64* %existing
151 %oldval = load volatile i32, i32* %existing
177 %oldval = load volatile i32, i32* %existing
204 %oldval = load volatile i64, i64* %existing
228 %oldval = load volatile i32, i32* %existing
[all …]
H A Dbitfield-insert-0.ll9 %oldval = load volatile i32, i32* %existing
10 %oldval_keep = and i32 %oldval, 4294705152 ; 0xfffc_0000
H A Datomic-ops-not-barriers.ll9 %oldval = load i32, i32* %var
10 %newval = add nsw i32 %oldval, -1
H A Darm64-atomic-128.ll8 define i128 @val_compare_and_swap(i128* %p, i128 %oldval, i128 %newval) {
54 %pair = cmpxchg i128* %p, i128 %oldval, i128 %newval acquire acquire
59 define i128 @val_compare_and_swap_seqcst(i128* %p, i128 %oldval, i128 %newval) {
105 %pair = cmpxchg i128* %p, i128 %oldval, i128 %newval seq_cst seq_cst
110 define i128 @val_compare_and_swap_release(i128* %p, i128 %oldval, i128 %newval) {
156 %pair = cmpxchg i128* %p, i128 %oldval, i128 %newval release monotonic
161 define i128 @val_compare_and_swap_monotonic(i128* %p, i128 %oldval, i128 %newval) {
207 %pair = cmpxchg i128* %p, i128 %oldval, i128 %newval monotonic monotonic
H A Dcmpxchg-idioms.ll5 define i32 @test_return(i32* %p, i32 %oldval, i32 %newval) {
45 %pair = cmpxchg i32* %p, i32 %oldval, i32 %newval seq_cst seq_cst
102 define void @test_conditional(i32* %p, i32 %oldval, i32 %newval) {
145 %pair = cmpxchg i32* %p, i32 %oldval, i32 %newval seq_cst seq_cst
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/GlobalISel/
H A Dirtranslator-atomicrmw.ll14 %oldval = atomicrmw fadd float addrspace(3)* %addr, float 1.0 seq_cst
15 ret float %oldval
48 %oldval = atomicrmw fsub float addrspace(3)* %addr, float 1.0 seq_cst
49 ret float %oldval
/llvm-project-15.0.7/llvm/test/CodeGen/ARM/
H A Dcmpxchg-idioms.ll3 define i32 @test_return(i32* %p, i32 %oldval, i32 %newval) {
33 %pair = cmpxchg i32* %p, i32 %oldval, i32 %newval seq_cst seq_cst
79 define void @test_conditional(i32* %p, i32 %oldval, i32 %newval) {
107 %pair = cmpxchg i32* %p, i32 %oldval, i32 %newval seq_cst seq_cst
H A Dcmpxchg-weak.ll27 %oldval = extractvalue { i32, i1 } %pair, 0
28 store i32 %oldval, i32* %addr
H A Datomic-op.ll290 %oldval = extractvalue { i32, i1 } %pair, 0
325 ret i32 %oldval
332 %oldval = extractvalue { i32, i1 } %pair, 0
348 ret i32 %oldval
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dcmpxchg-i1.ll75 %old = phi i32 [%init, %entry], [%oldval, %loop]
78 %oldval = extractvalue { i32, i1 } %pair, 0
83 ret i32 %oldval
H A Dcmpxchg-i128-i1.ll77 %oldval = extractvalue { i128, i1 } %pair, 0
78 %success = icmp sge i128 %oldval, %desired
140 %old = phi i128 [%init, %entry], [%oldval, %loop]
144 %oldval = extractvalue { i128, i1 } %pair, 0
/llvm-project-15.0.7/llvm/test/CodeGen/Mips/
H A Dmicromips-atomic1.ll20 define signext i8 @AtomicCmpSwap8(i8 signext %oldval, i8 signext %newval) nounwind {
22 %pair0 = cmpxchg i8* @y, i8 %oldval, i8 %newval monotonic monotonic
/llvm-project-15.0.7/libc/test/integration/src/threads/
H A Dcnd_test.cpp46 unsigned oldval = broadcast_count.fetch_add(1); in broadcast_thread_func() local
47 if (oldval == THRD_COUNT - 1) { in broadcast_thread_func()
/llvm-project-15.0.7/compiler-rt/test/tsan/
H A Dreal_deadlock_detector_stress_test.cpp36 bool cas(int *a, int oldval, int newval) { in cas() argument
37 return __atomic_compare_exchange_n(a, &oldval, newval, false, in cas()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_freebsd.h100 void *oldval; member
/llvm-project-15.0.7/llvm/include/llvm/Target/
H A DGenericOpcodes.td1089 let OutOperandList = (outs type0:$oldval, type1:$success);
1099 let OutOperandList = (outs type0:$oldval);
1109 let OutOperandList = (outs type0:$oldval);

12