Home
last modified time | relevance | path

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

12

/external/clang/test/Sema/
Datomic-ops.c102 __c11_atomic_load(i, memory_order_seq_cst); in f()
103 __c11_atomic_load(p, memory_order_seq_cst); in f()
104 __c11_atomic_load(d, memory_order_seq_cst); in f()
105 …__c11_atomic_load(ci, memory_order_seq_cst); // expected-error {{address argument to atomic operat… in f()
119 (int)__atomic_load(I, I, memory_order_seq_cst); // expected-error {{operand of type 'void'}} in f()
122 __c11_atomic_store(i, 1, memory_order_seq_cst); in f()
123 …__c11_atomic_store(p, 1, memory_order_seq_cst); // expected-warning {{incompatible integer to poin… in f()
124 (int)__c11_atomic_store(d, 1, memory_order_seq_cst); // expected-error {{operand of type 'void'}} in f()
139 int exchange_1 = __c11_atomic_exchange(i, 1, memory_order_seq_cst); in f()
140 …int exchange_2 = __c11_atomic_exchange(I, 1, memory_order_seq_cst); // expected-error {{must be a … in f()
[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.c19 memory_order_seq_cst enumerator
23 (void)__atomic_load(&c1, &c2, memory_order_seq_cst); in test1()
24 (void)__atomic_store(&c1, &c2, memory_order_seq_cst); in test1()
25 (void)__atomic_load(&s1, &s2, memory_order_seq_cst); in test1()
26 (void)__atomic_store(&s1, &s2, memory_order_seq_cst); in test1()
27 (void)__atomic_load(&i1, &i2, memory_order_seq_cst); in test1()
28 (void)__atomic_store(&i1, &i2, memory_order_seq_cst); in test1()
29 (void)__atomic_load(&ll1, &ll2, memory_order_seq_cst); in test1()
30 (void)__atomic_store(&ll1, &ll2, memory_order_seq_cst); in test1()
31 (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.cpp86 std::memory_order_seq_cst) == false); in main()
92 std::memory_order_seq_cst, in main()
93 std::memory_order_seq_cst) == true); in main()
102 std::memory_order_seq_cst) == false); in main()
108 std::memory_order_seq_cst, in main()
109 std::memory_order_seq_cst) == true); in main()
141 std::memory_order_seq_cst) == false); in main()
147 std::memory_order_seq_cst, in main()
148 std::memory_order_seq_cst) == true); in main()
157 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.cpp42 std::memory_order_seq_cst, std::memory_order_seq_cst) == true); in test()
46 std::memory_order_seq_cst, std::memory_order_seq_cst) == false); in test()
56 std::memory_order_seq_cst, std::memory_order_seq_cst) == true); in test()
60 std::memory_order_seq_cst, std::memory_order_seq_cst) == false); in test()
Datomic_compare_exchange_strong_explicit.pass.cpp40 std::memory_order_seq_cst, std::memory_order_seq_cst) == true); in test()
44 std::memory_order_seq_cst, std::memory_order_seq_cst) == false); in test()
54 std::memory_order_seq_cst, std::memory_order_seq_cst) == true); in test()
58 std::memory_order_seq_cst, std::memory_order_seq_cst) == false); in test()
Datomic_fetch_sub_explicit.pass.cpp45 std::memory_order_seq_cst) == T(3)); in test()
53 std::memory_order_seq_cst) == T(3)); in test()
68 std::memory_order_seq_cst) == T(3*sizeof(X))); in testp()
77 std::memory_order_seq_cst) == T(3*sizeof(X))); in testp()
Datomic_fetch_add_explicit.pass.cpp44 std::memory_order_seq_cst) == T(1)); in test()
52 std::memory_order_seq_cst) == T(1)); in test()
67 std::memory_order_seq_cst) == T(1*sizeof(X))); in testp()
76 std::memory_order_seq_cst) == T(1*sizeof(X))); in testp()
Datomic_fetch_and_explicit.pass.cpp35 std::memory_order_seq_cst) == T(1)); in test()
43 std::memory_order_seq_cst) == T(3)); in test()
Datomic_fetch_or_explicit.pass.cpp35 std::memory_order_seq_cst) == T(1)); in test()
43 std::memory_order_seq_cst) == T(3)); in test()
Datomic_fetch_xor_explicit.pass.cpp35 std::memory_order_seq_cst) == T(1)); in test()
43 std::memory_order_seq_cst) == T(3)); in test()
/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/
Datomic29 memory_order_seq_cst // store-release load-acquire
51 bool test_and_set(memory_order m = memory_order_seq_cst) volatile noexcept;
52 bool test_and_set(memory_order m = memory_order_seq_cst) noexcept;
53 void clear(memory_order m = memory_order_seq_cst) volatile noexcept;
54 void clear(memory_order m = memory_order_seq_cst) noexcept;
94 void store(T desr, memory_order m = memory_order_seq_cst) volatile noexcept;
95 void store(T desr, memory_order m = memory_order_seq_cst) noexcept;
96 T load(memory_order m = memory_order_seq_cst) const volatile noexcept;
97 T load(memory_order m = memory_order_seq_cst) const noexcept;
100 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.cpp38 std::memory_order_seq_cst, in main()
39 std::memory_order_seq_cst); in main()
50 std::memory_order_seq_cst, in main()
51 std::memory_order_seq_cst); in main()
Datomic_compare_exchange_strong_explicit.pass.cpp38 std::memory_order_seq_cst, in main()
39 std::memory_order_seq_cst); in main()
50 std::memory_order_seq_cst, in main()
51 std::memory_order_seq_cst); in main()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_atomic_msvc.h80 | memory_order_acquire | memory_order_seq_cst)); in atomic_load()
87 atomic_signal_fence(memory_order_seq_cst); in atomic_load()
89 atomic_signal_fence(memory_order_seq_cst); in atomic_load()
97 | memory_order_seq_cst)); in atomic_store()
103 atomic_signal_fence(memory_order_seq_cst); in atomic_store()
105 atomic_signal_fence(memory_order_seq_cst); in atomic_store()
107 if (mo == memory_order_seq_cst) in atomic_store()
108 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.flag/
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/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()

12