Home
last modified time | relevance | path

Searched refs:memory_order_consume (Results 1 – 25 of 71) sorted by relevance

123

/external/clang/test/Sema/
Datomic-ops.c253 k = atomic_fetch_or_explicit(&n, k, memory_order_consume); in f()
283 (void)__c11_atomic_load(Ap, memory_order_consume); in memory_checks()
293 …(void)__c11_atomic_store(Ap, val, memory_order_consume); // expected-warning {{memory order argume… in memory_checks()
300 (void)__c11_atomic_fetch_add(Ap, 1, memory_order_consume); in memory_checks()
318 (void)__c11_atomic_fetch_sub(Ap, val, memory_order_consume); in memory_checks()
325 (void)__c11_atomic_fetch_and(Ap, val, memory_order_consume); in memory_checks()
332 (void)__c11_atomic_fetch_or(Ap, val, memory_order_consume); in memory_checks()
339 (void)__c11_atomic_fetch_xor(Ap, val, memory_order_consume); in memory_checks()
346 (void)__c11_atomic_exchange(Ap, val, memory_order_consume); in memory_checks()
353 …(void)__c11_atomic_compare_exchange_strong(Ap, p, val, memory_order_consume, memory_order_relaxed); in memory_checks()
[all …]
/external/llvm-project/clang/test/Sema/
Datomic-ops.c266 k = atomic_fetch_or_explicit(&n, k, memory_order_consume); in f()
296 (void)__c11_atomic_load(Ap, memory_order_consume); in memory_checks()
306 …(void)__c11_atomic_store(Ap, val, memory_order_consume); // expected-warning {{memory order argume… in memory_checks()
313 (void)__c11_atomic_fetch_add(Ap, 1, memory_order_consume); in memory_checks()
331 (void)__c11_atomic_fetch_sub(Ap, val, memory_order_consume); in memory_checks()
338 (void)__c11_atomic_fetch_and(Ap, val, memory_order_consume); in memory_checks()
345 (void)__c11_atomic_fetch_or(Ap, val, memory_order_consume); in memory_checks()
352 (void)__c11_atomic_fetch_xor(Ap, val, memory_order_consume); in memory_checks()
359 (void)__c11_atomic_fetch_min(Ap, val, memory_order_consume); in memory_checks()
366 (void)__c11_atomic_fetch_max(Ap, val, memory_order_consume); in memory_checks()
[all …]
/external/llvm-project/libcxx/test/libcxx/atomics/
Ddiagnose_invalid_memory_order.verify.cpp35 x.load(std::memory_order_consume); in main()
46 std::atomic_load_explicit(&x, std::memory_order_consume); in main()
52 …x.store(42, std::memory_order_consume); // expected-warning {{memory order argument to atomic oper… in main()
55 …vx.store(42, std::memory_order_consume); // expected-warning {{memory order argument to atomic ope… in main()
64 …std::atomic_store_explicit(&x, 42, std::memory_order_consume); // expected-warning {{memory order … in main()
67 …std::atomic_store_explicit(&vx, 42, std::memory_order_consume); // expected-warning {{memory order… in main()
83 x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_consume); in main()
97 …pare_exchange_weak_explicit(&x, &val1, val2, std::memory_order_seq_cst, std::memory_order_consume); in main()
109 x.compare_exchange_strong(val1, val2, std::memory_order_seq_cst, std::memory_order_consume); in main()
123 …re_exchange_strong_explicit(&x, &val1, val2, std::memory_order_seq_cst, std::memory_order_consume); in main()
/external/libcxx/test/libcxx/atomics/
Ddiagnose_invalid_memory_order.fail.cpp36 x.load(std::memory_order_consume); in main()
47 std::atomic_load_explicit(&x, std::memory_order_consume); in main()
53 …x.store(42, std::memory_order_consume); // expected-warning {{memory order argument to atomic oper… in main()
56 …vx.store(42, std::memory_order_consume); // expected-warning {{memory order argument to atomic ope… in main()
65 …std::atomic_store_explicit(&x, 42, std::memory_order_consume); // expected-warning {{memory order … in main()
68 …std::atomic_store_explicit(&vx, 42, std::memory_order_consume); // expected-warning {{memory order… in main()
84 x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_consume); in main()
98 …pare_exchange_weak_explicit(&x, &val1, val2, std::memory_order_seq_cst, std::memory_order_consume); in main()
110 x.compare_exchange_strong(val1, val2, std::memory_order_seq_cst, std::memory_order_consume); in main()
124 …re_exchange_strong_explicit(&x, &val1, val2, std::memory_order_seq_cst, std::memory_order_consume); in main()
/external/scudo/standalone/tests/
Datomic_test.cpp51 checkStoreLoad<atomic_u8, memory_order_consume, memory_order_relaxed>(); in TEST()
57 checkStoreLoad<atomic_u16, memory_order_consume, memory_order_relaxed>(); in TEST()
63 checkStoreLoad<atomic_u32, memory_order_consume, memory_order_relaxed>(); in TEST()
69 checkStoreLoad<atomic_u64, memory_order_consume, memory_order_relaxed>(); in TEST()
75 checkStoreLoad<atomic_uptr, memory_order_consume, memory_order_relaxed>(); in TEST()
/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/
Datomic_test.cpp51 checkStoreLoad<atomic_u8, memory_order_consume, memory_order_relaxed>(); in TEST()
57 checkStoreLoad<atomic_u16, memory_order_consume, memory_order_relaxed>(); in TEST()
63 checkStoreLoad<atomic_u32, memory_order_consume, memory_order_relaxed>(); in TEST()
69 checkStoreLoad<atomic_u64, memory_order_consume, memory_order_relaxed>(); in TEST()
75 checkStoreLoad<atomic_uptr, memory_order_consume, memory_order_relaxed>(); in TEST()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_atomic_test.cc56 CheckStoreLoad<atomic_uint8_t, memory_order_consume, memory_order_relaxed>(); in TEST()
62 CheckStoreLoad<atomic_uint16_t, memory_order_consume, memory_order_relaxed>(); in TEST()
68 CheckStoreLoad<atomic_uint32_t, memory_order_consume, memory_order_relaxed>(); in TEST()
74 CheckStoreLoad<atomic_uint64_t, memory_order_consume, memory_order_relaxed>(); in TEST()
81 CheckStoreLoad<atomic_uintptr_t, memory_order_consume, memory_order_relaxed> in TEST()
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_atomic_test.cpp67 CheckStoreLoad<atomic_uint8_t, memory_order_consume, memory_order_relaxed>(); in TEST()
73 CheckStoreLoad<atomic_uint16_t, memory_order_consume, memory_order_relaxed>(); in TEST()
79 CheckStoreLoad<atomic_uint32_t, memory_order_consume, memory_order_relaxed>(); in TEST()
88 CheckStoreLoad<atomic_uint64_t, memory_order_consume, memory_order_relaxed>(); in TEST()
96 CheckStoreLoad<atomic_uintptr_t, memory_order_consume, memory_order_relaxed> in TEST()
/external/llvm-project/libcxx/test/std/atomics/atomics.flag/
Dtest_and_set.pass.cpp40 assert(f.test_and_set(std::memory_order_consume) == 0); in main()
41 assert(f.test_and_set(std::memory_order_consume) == 1); in main()
82 assert(f.test_and_set(std::memory_order_consume) == 0); in main()
83 assert(f.test_and_set(std::memory_order_consume) == 1); in main()
Datomic_flag_test_explicit.pass.cpp35 assert(atomic_flag_test_explicit(&f, std::memory_order_consume) == 0); in main()
37 assert(atomic_flag_test_explicit(&f, std::memory_order_consume) == 1); in main()
79 assert(atomic_flag_test_explicit(&f, std::memory_order_consume) == 0); in main()
81 assert(atomic_flag_test_explicit(&f, std::memory_order_consume) == 1); in main()
Datomic_flag_test_and_set_explicit.pass.cpp34 assert(atomic_flag_test_and_set_explicit(&f, std::memory_order_consume) == 0); in main()
70 assert(atomic_flag_test_and_set_explicit(&f, std::memory_order_consume) == 0); in main()
/external/libcxx/test/std/atomics/atomics.flag/
Dtest_and_set.pass.cpp39 assert(f.test_and_set(std::memory_order_consume) == 0); in main()
40 assert(f.test_and_set(std::memory_order_consume) == 1); in main()
81 assert(f.test_and_set(std::memory_order_consume) == 0); in main()
82 assert(f.test_and_set(std::memory_order_consume) == 1); in main()
Datomic_flag_test_and_set_explicit.pass.cpp33 assert(atomic_flag_test_and_set_explicit(&f, std::memory_order_consume) == 0); in main()
69 assert(atomic_flag_test_and_set_explicit(&f, std::memory_order_consume) == 0); in main()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_atomic_clang_other.h27 DCHECK(mo & (memory_order_relaxed | memory_order_consume in atomic_load()
36 } else if (mo == memory_order_consume) { in atomic_load()
Dsanitizer_atomic_clang_x86.h29 DCHECK(mo & (memory_order_relaxed | memory_order_consume in atomic_load()
38 } else if (mo == memory_order_consume) { in atomic_load()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_atomic_clang_x86.h30 DCHECK(mo & (memory_order_relaxed | memory_order_consume in atomic_load()
39 } else if (mo == memory_order_consume) { in atomic_load()
Dsanitizer_atomic_clang_other.h27 DCHECK(mo & (memory_order_relaxed | memory_order_consume in atomic_load()
36 } else if (mo == memory_order_consume) { in atomic_load()
/external/libcxx/test/std/atomics/atomics.order/
Dmemory_order.pass.cpp26 assert(std::memory_order_consume == 1); in main()
/external/llvm-project/libcxx/test/std/atomics/atomics.order/
Dmemory_order.pass.cpp27 assert(static_cast<int>(std::memory_order_consume) == 1); in main()
Dmemory_order_new.pass.cpp18 static_assert(std::memory_order_consume == std::memory_order::consume); in main()
/external/llvm-project/compiler-rt/lib/scudo/standalone/
Datomic_helpers.h18 memory_order_consume = 1, enumerator
25 static_assert(memory_order_consume == __ATOMIC_CONSUME, "");
/external/scudo/standalone/
Datomic_helpers.h18 memory_order_consume = 1, enumerator
25 static_assert(memory_order_consume == __ATOMIC_CONSUME, "");
/external/clang/test/CodeGen/
Darm-atomics.c9 memory_order_relaxed, memory_order_consume, memory_order_acquire, enumerator
/external/llvm-project/clang/test/CodeGen/
Darm-atomics.c9 memory_order_relaxed, memory_order_consume, memory_order_acquire, enumerator
Darm-atomics-m0.c7 memory_order_relaxed, memory_order_consume, memory_order_acquire, enumerator

123