/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/libcxx/test/libcxx/atomics/ |
D | diagnose_invalid_memory_order.fail.cpp | 34 x.load(std::memory_order_seq_cst); in main() 45 std::atomic_load_explicit(&x, std::memory_order_seq_cst); in main() 58 x.store(42, std::memory_order_seq_cst); in main() 70 std::atomic_store_explicit(&x, 42, std::memory_order_seq_cst); in main() 74 …x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_release); // expe… in main() 75 …x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acq_rel); // expe… in main() 76 …vx.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_release); // exp… in main() 77 …vx.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acq_rel); // exp… in main() 79 x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_relaxed); in main() 80 x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_consume); in main() [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-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()
|
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 | atomic-arm64.c | 10 memory_order_seq_cst = 5 enumerator 30 __c11_atomic_store(&a_bool, 1, memory_order_seq_cst); in test0() 40 __c11_atomic_store(&a_float, 3, memory_order_seq_cst); in test1() 50 __c11_atomic_store(&a_pointer, &a_bool, memory_order_seq_cst); in test2() 61 __c11_atomic_store(&a_pointer_pair, pair, memory_order_seq_cst); in test3() 73 __c11_atomic_store(&a_pointer_quad, quad, memory_order_seq_cst); in test4()
|
/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/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 ()()
|
D | atomic_fetch_add_explicit.pass.cpp | 45 std::memory_order_seq_cst) == T(1)); in operator ()() 53 std::memory_order_seq_cst) == T(1)); in operator ()() 69 std::memory_order_seq_cst) == T(1*sizeof(X))); in testp() 78 std::memory_order_seq_cst) == T(1*sizeof(X))); in testp()
|
D | atomic_fetch_sub_explicit.pass.cpp | 46 std::memory_order_seq_cst) == T(3)); in operator ()() 54 std::memory_order_seq_cst) == T(3)); in operator ()() 69 std::memory_order_seq_cst) == T(3*sizeof(X))); in testp() 78 std::memory_order_seq_cst) == T(3*sizeof(X))); in testp()
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_atomic_test.cc | 59 CheckStoreLoad<atomic_uint8_t, memory_order_seq_cst, memory_order_seq_cst>(); in TEST() 65 CheckStoreLoad<atomic_uint16_t, memory_order_seq_cst, memory_order_seq_cst>(); in TEST() 71 CheckStoreLoad<atomic_uint32_t, memory_order_seq_cst, memory_order_seq_cst>(); in TEST() 77 CheckStoreLoad<atomic_uint64_t, memory_order_seq_cst, memory_order_seq_cst>(); in TEST() 87 CheckStoreLoad<atomic_uintptr_t, memory_order_seq_cst, memory_order_seq_cst> in TEST()
|
/external/libcxx/include/ |
D | atomic | 33 memory_order_seq_cst // store-release load-acquire 55 bool test_and_set(memory_order m = memory_order_seq_cst) volatile noexcept; 56 bool test_and_set(memory_order m = memory_order_seq_cst) noexcept; 57 void clear(memory_order m = memory_order_seq_cst) volatile noexcept; 58 void clear(memory_order m = memory_order_seq_cst) noexcept; 99 void store(T desr, memory_order m = memory_order_seq_cst) volatile noexcept; 100 void store(T desr, memory_order m = memory_order_seq_cst) noexcept; 101 T load(memory_order m = memory_order_seq_cst) const volatile noexcept; 102 T load(memory_order m = memory_order_seq_cst) const noexcept; 105 T exchange(T desr, memory_order m = memory_order_seq_cst) volatile noexcept; [all …]
|
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared.atomic/ |
D | atomic_compare_exchange_weak_explicit.pass.cpp | 41 std::memory_order_seq_cst, in main() 42 std::memory_order_seq_cst); in main() 53 std::memory_order_seq_cst, in main() 54 std::memory_order_seq_cst); in main()
|
D | atomic_compare_exchange_strong_explicit.pass.cpp | 41 std::memory_order_seq_cst, in main() 42 std::memory_order_seq_cst); in main() 53 std::memory_order_seq_cst, in main() 54 std::memory_order_seq_cst); in main()
|
/external/libcxx/test/std/atomics/atomics.flag/ |
D | atomic_flag_clear_explicit.pass.cpp | 40 atomic_flag_clear_explicit(&f, std::memory_order_seq_cst); in main() 42 atomic_flag_clear_explicit(&f, std::memory_order_seq_cst); in main() 61 atomic_flag_clear_explicit(&f, std::memory_order_seq_cst); in main() 63 atomic_flag_clear_explicit(&f, std::memory_order_seq_cst); in main()
|
D | clear.pass.cpp | 47 f.clear(std::memory_order_seq_cst); in main() 49 f.clear(std::memory_order_seq_cst); in main() 75 f.clear(std::memory_order_seq_cst); in main() 77 f.clear(std::memory_order_seq_cst); in main()
|
D | test_and_set.pass.cpp | 63 assert(f.test_and_set(std::memory_order_seq_cst) == 0); in main() 64 assert(f.test_and_set(std::memory_order_seq_cst) == 1); in main() 105 assert(f.test_and_set(std::memory_order_seq_cst) == 0); in main() 106 assert(f.test_and_set(std::memory_order_seq_cst) == 1); in main()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_atomic_msvc.h | 84 | memory_order_acquire | memory_order_seq_cst)); in atomic_load() 91 atomic_signal_fence(memory_order_seq_cst); in atomic_load() 93 atomic_signal_fence(memory_order_seq_cst); in atomic_load() 101 | memory_order_seq_cst)); in atomic_store() 107 atomic_signal_fence(memory_order_seq_cst); in atomic_store() 109 atomic_signal_fence(memory_order_seq_cst); in atomic_store() 111 if (mo == memory_order_seq_cst) in atomic_store() 112 atomic_thread_fence(memory_order_seq_cst); in atomic_store()
|
D | sanitizer_atomic_clang_x86.h | 31 | memory_order_acquire | memory_order_seq_cst)); in atomic_load() 77 | memory_order_seq_cst)); in atomic_store() 109 if (mo == memory_order_seq_cst) in atomic_store()
|
/external/libcxx/test/std/atomics/atomics.order/ |
D | memory_order.pass.cpp | 30 assert(std::memory_order_seq_cst == 5); in main() 31 std::memory_order o = std::memory_order_seq_cst; in main()
|