diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-12 05:08:17 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-12 05:08:17 +0000 |
commit | ff34d401ff385ef7173ca612432b4ea717fff690 (patch) | |
tree | de759a7c65405730906e7d4ffd5f25cbbd5bcf69 /test/CodeGen/atomic_init.c | |
parent | b92bd4b3271b7892abe9fd8c74fb54a27ad702ab (diff) |
Implement support for 18 of the GNU-compatible __atomic builtins.
This is not quite sufficient for libstdc++'s <atomic>: we still need
__atomic_test_and_set and __atomic_clear, and may need a more complete
__atomic_is_lock_free implementation.
We are also missing an implementation of __atomic_always_lock_free,
__atomic_nand_fetch, and __atomic_fetch_nand, but those aren't needed
for libstdc++.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154579 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/atomic_init.c')
-rw-r--r-- | test/CodeGen/atomic_init.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/test/CodeGen/atomic_init.c b/test/CodeGen/atomic_init.c deleted file mode 100644 index 6f773bef48..0000000000 --- a/test/CodeGen/atomic_init.c +++ /dev/null @@ -1,14 +0,0 @@ -// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s - -// Check that no atomic operations are used in any initialisation of _Atomic -// types. - -_Atomic(int) i = 42; - -void foo() -{ - _Atomic(int) j = 12; // CHECK: store - // CHECK-NOT: atomic - __c11_atomic_init(&j, 42); // CHECK: store - // CHECK-NOT: atomic -} |