/external/clang/test/Sema/ |
D | atomic-ops.c | 105 __c11_atomic_load(i, memory_order_seq_cst); in f() 106 __c11_atomic_load(p, memory_order_seq_cst); in f() 107 __c11_atomic_load(d, memory_order_seq_cst); in f() 108 …__c11_atomic_load(ci, memory_order_seq_cst); // expected-error {{address argument to atomic operat… in f() 122 (int)__atomic_load(I, I, memory_order_seq_cst); // expected-error {{operand of type 'void'}} in f() 128 __c11_atomic_store(i, 1, memory_order_seq_cst); in f() 129 …__c11_atomic_store(p, 1, memory_order_seq_cst); // expected-warning {{incompatible integer to poin… in f() 130 (int)__c11_atomic_store(d, 1, memory_order_seq_cst); // expected-error {{operand of type 'void'}} in f() 145 int exchange_1 = __c11_atomic_exchange(i, 1, memory_order_seq_cst); in f() 146 …int exchange_2 = __c11_atomic_exchange(I, 1, memory_order_seq_cst); // expected-error {{must be a … in f() [all …]
|
/external/llvm-project/libcxx/test/libcxx/atomics/ |
D | diagnose_invalid_memory_order.verify.cpp | 37 x.load(std::memory_order_seq_cst); in main() 48 std::atomic_load_explicit(&x, std::memory_order_seq_cst); in main() 61 x.store(42, std::memory_order_seq_cst); in main() 73 std::atomic_store_explicit(&x, 42, std::memory_order_seq_cst); in main() 77 …x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_release); // expe… in main() 78 …x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acq_rel); // expe… in main() 79 …vx.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_release); // exp… in main() 80 …vx.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acq_rel); // exp… in main() 82 x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_relaxed); in main() 83 x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_consume); in main() [all …]
|
/external/libcxx/test/libcxx/atomics/ |
D | diagnose_invalid_memory_order.fail.cpp | 38 x.load(std::memory_order_seq_cst); in main() 49 std::atomic_load_explicit(&x, std::memory_order_seq_cst); in main() 62 x.store(42, std::memory_order_seq_cst); in main() 74 std::atomic_store_explicit(&x, 42, std::memory_order_seq_cst); in main() 78 …x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_release); // expe… in main() 79 …x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acq_rel); // expe… in main() 80 …vx.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_release); // exp… in main() 81 …vx.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acq_rel); // exp… in main() 83 x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_relaxed); in main() 84 x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_consume); in main() [all …]
|
/external/llvm-project/clang/test/Sema/ |
D | atomic-ops.c | 115 __c11_atomic_load(i, memory_order_seq_cst); in f() 116 __c11_atomic_load(p, memory_order_seq_cst); in f() 117 __c11_atomic_load(d, memory_order_seq_cst); in f() 118 __c11_atomic_load(ci, memory_order_seq_cst); in f() 132 (int)__atomic_load(I, I, memory_order_seq_cst); // expected-error {{operand of type 'void'}} in f() 138 __c11_atomic_store(i, 1, memory_order_seq_cst); in f() 139 …__c11_atomic_store(p, 1, memory_order_seq_cst); // expected-warning {{incompatible integer to poin… in f() 140 (int)__c11_atomic_store(d, 1, memory_order_seq_cst); // expected-error {{operand of type 'void'}} in f() 155 int exchange_1 = __c11_atomic_exchange(i, 1, memory_order_seq_cst); in f() 156 …int exchange_2 = __c11_atomic_exchange(I, 1, memory_order_seq_cst); // expected-error {{must be a … in f() [all …]
|
/external/clang/test/CodeGen/ |
D | atomic-ops-libcall.c | 5 memory_order_release, memory_order_acq_rel, memory_order_seq_cst enumerator 11 return __c11_atomic_fetch_add(p, 3, memory_order_seq_cst); in test_c11_atomic_fetch_add_int_ptr() 17 return __c11_atomic_fetch_sub(p, 5, memory_order_seq_cst); in test_c11_atomic_fetch_sub_int_ptr() 23 return __c11_atomic_fetch_add(p, 3, memory_order_seq_cst); in test_c11_atomic_fetch_add_int() 29 return __c11_atomic_fetch_sub(p, 5, memory_order_seq_cst); in test_c11_atomic_fetch_sub_int() 42 return __atomic_fetch_add(p, 55, memory_order_seq_cst); in test_atomic_fetch_add() 48 return __atomic_fetch_sub(p, 55, memory_order_seq_cst); in test_atomic_fetch_sub() 54 return __atomic_fetch_and(p, 55, memory_order_seq_cst); in test_atomic_fetch_and() 60 return __atomic_fetch_or(p, 55, memory_order_seq_cst); in test_atomic_fetch_or() 66 return __atomic_fetch_xor(p, 55, memory_order_seq_cst); in test_atomic_fetch_xor() [all …]
|
D | atomic-ops.c | 18 return __c11_atomic_load(i, memory_order_seq_cst); in fi1() 25 __atomic_load(i, &v, memory_order_seq_cst); in fi1a() 32 return __atomic_load_n(i, memory_order_seq_cst); in fi1b() 44 __c11_atomic_store(i, 1, memory_order_seq_cst); in fi2() 51 __atomic_store(i, &v, memory_order_seq_cst); in fi2a() 57 __atomic_store_n(i, 1, memory_order_seq_cst); in fi2b() 70 return __c11_atomic_fetch_and(i, 1, memory_order_seq_cst); in fi3() 77 return __atomic_fetch_xor(i, 1, memory_order_seq_cst); in fi3a() 84 return __atomic_add_fetch(i, 1, memory_order_seq_cst); in fi3b() 91 return __atomic_fetch_nand(i, 1, memory_order_seq_cst); in fi3c() [all …]
|
D | big-atomic-ops.c | 14 memory_order_release, memory_order_acq_rel, memory_order_seq_cst enumerator 20 return __c11_atomic_load(i, memory_order_seq_cst); in fi1() 27 __atomic_load(i, &v, memory_order_seq_cst); in fi1a() 34 return __atomic_load_n(i, memory_order_seq_cst); in fi1b() 40 __c11_atomic_store(i, 1, memory_order_seq_cst); in fi2() 47 __atomic_store(i, &v, memory_order_seq_cst); in fi2a() 53 __atomic_store_n(i, 1, memory_order_seq_cst); in fi2b() 60 return __c11_atomic_fetch_and(i, 1, memory_order_seq_cst); in fi3() 67 return __atomic_fetch_xor(i, 1, memory_order_seq_cst); in fi3a() 74 return __atomic_add_fetch(i, 1, memory_order_seq_cst); in fi3b() [all …]
|
D | atomics-inlining.c | 20 memory_order_seq_cst enumerator 24 (void)__atomic_load(&c1, &c2, memory_order_seq_cst); in test1() 25 (void)__atomic_store(&c1, &c2, memory_order_seq_cst); in test1() 26 (void)__atomic_load(&s1, &s2, memory_order_seq_cst); in test1() 27 (void)__atomic_store(&s1, &s2, memory_order_seq_cst); in test1() 28 (void)__atomic_load(&i1, &i2, memory_order_seq_cst); in test1() 29 (void)__atomic_store(&i1, &i2, memory_order_seq_cst); in test1() 30 (void)__atomic_load(&ll1, &ll2, memory_order_seq_cst); in test1() 31 (void)__atomic_store(&ll1, &ll2, memory_order_seq_cst); in test1() 32 (void)__atomic_load(&a1, &a2, memory_order_seq_cst); in test1() [all …]
|
D | arm-atomics.c | 10 memory_order_release, memory_order_acq_rel, memory_order_seq_cst enumerator 17 __atomic_fetch_add(&i, 1, memory_order_seq_cst); in test_presence() 19 __atomic_fetch_sub(&i, 1, memory_order_seq_cst); in test_presence() 22 __atomic_load(&i, &r, memory_order_seq_cst); in test_presence() 25 __atomic_store(&i, &r, memory_order_seq_cst); in test_presence() 28 __atomic_fetch_add(&l, 1, memory_order_seq_cst); in test_presence() 30 __atomic_fetch_sub(&l, 1, memory_order_seq_cst); in test_presence() 33 __atomic_load(&l, &rl, memory_order_seq_cst); in test_presence() 36 __atomic_store(&l, &rl, memory_order_seq_cst); in test_presence()
|
D | arm-atomics-m.c | 8 memory_order_release, memory_order_acq_rel, memory_order_seq_cst enumerator 15 __atomic_fetch_add(&i, 1, memory_order_seq_cst); in test_presence() 17 __atomic_fetch_sub(&i, 1, memory_order_seq_cst); in test_presence() 20 __atomic_load(&i, &r, memory_order_seq_cst); in test_presence() 23 __atomic_store(&i, &r, memory_order_seq_cst); in test_presence() 26 __atomic_fetch_add(&l, 1, memory_order_seq_cst); in test_presence() 28 __atomic_fetch_sub(&l, 1, memory_order_seq_cst); in test_presence() 31 __atomic_load(&l, &rl, memory_order_seq_cst); in test_presence() 34 __atomic_store(&l, &rl, memory_order_seq_cst); in test_presence()
|
D | arm-atomics-m0.c | 8 memory_order_release, memory_order_acq_rel, memory_order_seq_cst enumerator 15 __atomic_fetch_add(&i, 1, memory_order_seq_cst); in test_presence() 17 __atomic_fetch_sub(&i, 1, memory_order_seq_cst); in test_presence() 20 __atomic_load(&i, &r, memory_order_seq_cst); in test_presence() 23 __atomic_store(&i, &r, memory_order_seq_cst); in test_presence() 26 __atomic_fetch_add(&l, 1, memory_order_seq_cst); in test_presence() 28 __atomic_fetch_sub(&l, 1, memory_order_seq_cst); in test_presence() 31 __atomic_load(&l, &rl, memory_order_seq_cst); in test_presence() 34 __atomic_store(&l, &rl, memory_order_seq_cst); in test_presence()
|
/external/llvm-project/clang/test/CodeGen/ |
D | atomic-ops-libcall.c | 8 memory_order_release, memory_order_acq_rel, memory_order_seq_cst enumerator 14 return __c11_atomic_fetch_add(p, 3, memory_order_seq_cst); in test_c11_atomic_fetch_add_int_ptr() 20 return __c11_atomic_fetch_sub(p, 5, memory_order_seq_cst); in test_c11_atomic_fetch_sub_int_ptr() 26 return __c11_atomic_fetch_add(p, 3, memory_order_seq_cst); in test_c11_atomic_fetch_add_int() 32 return __c11_atomic_fetch_sub(p, 5, memory_order_seq_cst); in test_c11_atomic_fetch_sub_int() 45 return __atomic_fetch_add(p, 55, memory_order_seq_cst); in test_atomic_fetch_add() 51 return __atomic_fetch_sub(p, 55, memory_order_seq_cst); in test_atomic_fetch_sub() 57 return __atomic_fetch_and(p, 55, memory_order_seq_cst); in test_atomic_fetch_and() 63 return __atomic_fetch_or(p, 55, memory_order_seq_cst); in test_atomic_fetch_or() 69 return __atomic_fetch_xor(p, 55, memory_order_seq_cst); in test_atomic_fetch_xor() [all …]
|
D | atomic-ops.c | 18 return __c11_atomic_load(i, memory_order_seq_cst); in fi1() 25 __atomic_load(i, &v, memory_order_seq_cst); in fi1a() 32 return __atomic_load_n(i, memory_order_seq_cst); in fi1b() 44 __c11_atomic_store(i, 1, memory_order_seq_cst); in fi2() 51 __atomic_store(i, &v, memory_order_seq_cst); in fi2a() 57 __atomic_store_n(i, 1, memory_order_seq_cst); in fi2b() 70 return __c11_atomic_fetch_and(i, 1, memory_order_seq_cst); in fi3() 77 return __atomic_fetch_xor(i, 1, memory_order_seq_cst); in fi3a() 84 return __atomic_add_fetch(i, 1, memory_order_seq_cst); in fi3b() 91 return __atomic_fetch_nand(i, 1, memory_order_seq_cst); in fi3c() [all …]
|
D | big-atomic-ops.c | 14 memory_order_release, memory_order_acq_rel, memory_order_seq_cst enumerator 20 return __c11_atomic_load(i, memory_order_seq_cst); in fi1() 27 __atomic_load(i, &v, memory_order_seq_cst); in fi1a() 34 return __atomic_load_n(i, memory_order_seq_cst); in fi1b() 40 __c11_atomic_store(i, 1, memory_order_seq_cst); in fi2() 47 __atomic_store(i, &v, memory_order_seq_cst); in fi2a() 53 __atomic_store_n(i, 1, memory_order_seq_cst); in fi2b() 60 return __c11_atomic_fetch_and(i, 1, memory_order_seq_cst); in fi3() 67 return __atomic_fetch_xor(i, 1, memory_order_seq_cst); in fi3a() 74 return __atomic_add_fetch(i, 1, memory_order_seq_cst); in fi3b() [all …]
|
D | atomics-inlining.c | 24 memory_order_seq_cst enumerator 28 (void)__atomic_load(&c1, &c2, memory_order_seq_cst); in test1() 29 (void)__atomic_store(&c1, &c2, memory_order_seq_cst); in test1() 30 (void)__atomic_load(&s1, &s2, memory_order_seq_cst); in test1() 31 (void)__atomic_store(&s1, &s2, memory_order_seq_cst); in test1() 32 (void)__atomic_load(&i1, &i2, memory_order_seq_cst); in test1() 33 (void)__atomic_store(&i1, &i2, memory_order_seq_cst); in test1() 34 (void)__atomic_load(&ll1, &ll2, memory_order_seq_cst); in test1() 35 (void)__atomic_store(&ll1, &ll2, memory_order_seq_cst); in test1() 36 (void)__atomic_load(&a1, &a2, memory_order_seq_cst); in test1() [all …]
|
D | arm-atomics.c | 10 memory_order_release, memory_order_acq_rel, memory_order_seq_cst enumerator 17 __atomic_fetch_add(&i, 1, memory_order_seq_cst); in test_presence() 19 __atomic_fetch_sub(&i, 1, memory_order_seq_cst); in test_presence() 22 __atomic_load(&i, &r, memory_order_seq_cst); in test_presence() 25 __atomic_store(&i, &r, memory_order_seq_cst); in test_presence() 28 __atomic_fetch_add(&l, 1, memory_order_seq_cst); in test_presence() 30 __atomic_fetch_sub(&l, 1, memory_order_seq_cst); in test_presence() 33 __atomic_load(&l, &rl, memory_order_seq_cst); in test_presence() 36 __atomic_store(&l, &rl, memory_order_seq_cst); in test_presence()
|
D | arm-atomics-m0.c | 8 memory_order_release, memory_order_acq_rel, memory_order_seq_cst enumerator 15 __atomic_fetch_add(&i, 1, memory_order_seq_cst); in test_presence() 17 __atomic_fetch_sub(&i, 1, memory_order_seq_cst); in test_presence() 20 __atomic_load(&i, &r, memory_order_seq_cst); in test_presence() 23 __atomic_store(&i, &r, memory_order_seq_cst); in test_presence() 26 __atomic_fetch_add(&l, 1, memory_order_seq_cst); in test_presence() 28 __atomic_fetch_sub(&l, 1, memory_order_seq_cst); in test_presence() 31 __atomic_load(&l, &rl, memory_order_seq_cst); in test_presence() 34 __atomic_store(&l, &rl, memory_order_seq_cst); in test_presence()
|
D | arm-atomics-m.c | 8 memory_order_release, memory_order_acq_rel, memory_order_seq_cst enumerator 15 __atomic_fetch_add(&i, 1, memory_order_seq_cst); in test_presence() 17 __atomic_fetch_sub(&i, 1, memory_order_seq_cst); in test_presence() 20 __atomic_load(&i, &r, memory_order_seq_cst); in test_presence() 23 __atomic_store(&i, &r, memory_order_seq_cst); in test_presence() 26 __atomic_fetch_add(&l, 1, memory_order_seq_cst); in test_presence() 28 __atomic_fetch_sub(&l, 1, memory_order_seq_cst); in test_presence() 31 __atomic_load(&l, &rl, memory_order_seq_cst); in test_presence() 34 __atomic_store(&l, &rl, memory_order_seq_cst); in test_presence()
|
/external/llvm-project/clang/test/SemaOpenCL/ |
D | atomic-ops.cl | 17 memory_order_seq_cst = __ATOMIC_SEQ_CST 58 __opencl_atomic_load(i, memory_order_seq_cst, memory_scope_work_group); 59 __opencl_atomic_load(p, memory_order_seq_cst, memory_scope_work_group); 60 __opencl_atomic_load(d, memory_order_seq_cst, memory_scope_work_group); 61 __opencl_atomic_load(ci, memory_order_seq_cst, memory_scope_work_group); 62 …__opencl_atomic_load(i_c, memory_order_seq_cst, memory_scope_work_group); // expected-error {{addr… 64 __opencl_atomic_store(i, 1, memory_order_seq_cst, memory_scope_work_group); 65 __opencl_atomic_store(p, 1, memory_order_seq_cst, memory_scope_work_group); 66 …(int)__opencl_atomic_store(d, 1, memory_order_seq_cst, memory_scope_work_group); // expected-error… 68 int exchange_1 = __opencl_atomic_exchange(i, 1, memory_order_seq_cst, memory_scope_work_group); [all …]
|
/external/llvm-project/clang/test/CodeGen/RISCV/ |
D | riscv-atomics.c | 29 __c11_atomic_load(a, memory_order_seq_cst); in test_i8_atomics() 30 __c11_atomic_store(a, b, memory_order_seq_cst); in test_i8_atomics() 31 __c11_atomic_fetch_add(a, b, memory_order_seq_cst); in test_i8_atomics() 47 __c11_atomic_load(a, memory_order_seq_cst); in test_i32_atomics() 48 __c11_atomic_store(a, b, memory_order_seq_cst); in test_i32_atomics() 49 __c11_atomic_fetch_add(a, b, memory_order_seq_cst); in test_i32_atomics() 65 __c11_atomic_load(a, memory_order_seq_cst); in test_i64_atomics() 66 __c11_atomic_store(a, b, memory_order_seq_cst); in test_i64_atomics() 67 __c11_atomic_fetch_add(a, b, memory_order_seq_cst); in test_i64_atomics()
|
/external/libcxx/test/std/atomics/atomics.types.generic/ |
D | bool.pass.cpp | 88 std::memory_order_seq_cst) == false); in main() 94 std::memory_order_seq_cst, in main() 95 std::memory_order_seq_cst) == true); in main() 104 std::memory_order_seq_cst) == false); in main() 110 std::memory_order_seq_cst, in main() 111 std::memory_order_seq_cst) == true); in main() 143 std::memory_order_seq_cst) == false); in main() 149 std::memory_order_seq_cst, in main() 150 std::memory_order_seq_cst) == true); in main() 159 std::memory_order_seq_cst) == false); in main() [all …]
|
/external/llvm-project/libcxx/test/std/atomics/atomics.types.generic/ |
D | bool.pass.cpp | 87 std::memory_order_seq_cst) == false); in main() 93 std::memory_order_seq_cst, in main() 94 std::memory_order_seq_cst) == true); in main() 103 std::memory_order_seq_cst) == false); in main() 109 std::memory_order_seq_cst, in main() 110 std::memory_order_seq_cst) == true); in main() 142 std::memory_order_seq_cst) == false); in main() 148 std::memory_order_seq_cst, in main() 149 std::memory_order_seq_cst) == true); in main() 158 std::memory_order_seq_cst) == false); in main() [all …]
|
/external/llvm-project/clang/test/CodeGenOpenCL/ |
D | atomic-ops-libcall.cl | 8 memory_order_seq_cst = __ATOMIC_SEQ_CST 25 x = __opencl_atomic_load(i, memory_order_seq_cst, memory_scope_work_group); 29 __opencl_atomic_store(i, 1, memory_order_seq_cst, memory_scope_work_group); 34 __opencl_atomic_store(gi, 1, memory_order_seq_cst, memory_scope_work_group); 39 __opencl_atomic_store(li, 1, memory_order_seq_cst, memory_scope_work_group); 44 __opencl_atomic_store(pi, 1, memory_order_seq_cst, memory_scope_work_group); 48 x = __opencl_atomic_fetch_add(i, 3, memory_order_seq_cst, memory_scope_work_group); 52 x = __opencl_atomic_fetch_min(i, 3, memory_order_seq_cst, memory_scope_work_group); 56 x = __opencl_atomic_fetch_min(ui, 3, memory_order_seq_cst, memory_scope_work_group); 60 … = __opencl_atomic_compare_exchange_strong(i, &cmp, 1, memory_order_seq_cst, memory_order_seq_cst,… [all …]
|
/external/llvm-project/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/ |
D | atomic_compare_exchange_weak_explicit.pass.cpp | 43 std::memory_order_seq_cst, std::memory_order_seq_cst) == true); in operator ()() 47 std::memory_order_seq_cst, std::memory_order_seq_cst) == false); in operator ()() 57 std::memory_order_seq_cst, std::memory_order_seq_cst) == true); in operator ()() 61 std::memory_order_seq_cst, std::memory_order_seq_cst) == false); in operator ()()
|
D | atomic_compare_exchange_strong_explicit.pass.cpp | 41 std::memory_order_seq_cst, std::memory_order_seq_cst) == true); in operator ()() 45 std::memory_order_seq_cst, std::memory_order_seq_cst) == false); in operator ()() 55 std::memory_order_seq_cst, std::memory_order_seq_cst) == true); in operator ()() 59 std::memory_order_seq_cst, std::memory_order_seq_cst) == false); in operator ()()
|