diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-09-13 22:21:56 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-09-13 22:21:56 +0000 |
commit | eb43f4a8f133c2bc510ae136a556e92b68a6ff44 (patch) | |
tree | 2f040bba53a3cb3d214e38a00f6682848c87aaf1 /test/CodeGen/atomic.c | |
parent | a179b531f4728b91291bfbf639ddf71ed7db810a (diff) |
Re-commit r139643.
Make clang use Acquire loads and Release stores where necessary.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139650 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/atomic.c')
-rw-r--r-- | test/CodeGen/atomic.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/CodeGen/atomic.c b/test/CodeGen/atomic.c index a0adac8e1c..c8f4fd09bb 100644 --- a/test/CodeGen/atomic.c +++ b/test/CodeGen/atomic.c @@ -75,8 +75,7 @@ int atomic(void) { // CHECK: cmpxchg i32* null, i32 0, i32 0 seq_cst __sync_lock_release(&val); - // FIXME: WRONG! - // CHECK: store volatile i32 0, i32* + // CHECK: store atomic {{.*}} release, align 4 __sync_synchronize (); // CHECK: fence seq_cst @@ -88,8 +87,7 @@ int atomic(void) { void release_return(int *lock) { // Ensure this is actually returning void all the way through. return __sync_lock_release(lock); - // FIXME: WRONG! - // CHECK: store volatile i32 0, i32* + // CHECK: store atomic {{.*}} release, align 4 } |