Home
last modified time | relevance | path

Searched refs:memory_order_seq_cst (Results 1 – 25 of 51) sorted by relevance

123

/external/clang/test/Sema/
Datomic-ops.c105 __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/
Ddiagnose_invalid_memory_order.fail.cpp34 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/
Datomic-ops-libcall.c5 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 …]
Datomic-ops.c18 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 …]
Dbig-atomic-ops.c14 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 …]
Datomics-inlining.c20 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 …]
Darm-atomics-m.c8 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()
Darm-atomics-m0.c8 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()
Darm-atomics.c10 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()
Datomic-arm64.c10 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/
Dbool.pass.cpp88 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/
Datomic_compare_exchange_weak_explicit.pass.cpp43 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 ()()
Datomic_compare_exchange_strong_explicit.pass.cpp41 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 ()()
Datomic_fetch_add_explicit.pass.cpp45 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()
Datomic_fetch_sub_explicit.pass.cpp46 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/
Dsanitizer_atomic_test.cc59 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/
Datomic33 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/
Datomic_compare_exchange_weak_explicit.pass.cpp41 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()
Datomic_compare_exchange_strong_explicit.pass.cpp41 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/
Datomic_flag_clear_explicit.pass.cpp40 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()
Dclear.pass.cpp47 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()
Dtest_and_set.pass.cpp63 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/
Dsanitizer_atomic_msvc.h84 | 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()
Dsanitizer_atomic_clang_x86.h31 | 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/
Dmemory_order.pass.cpp30 assert(std::memory_order_seq_cst == 5); in main()
31 std::memory_order o = std::memory_order_seq_cst; in main()

123