diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2011-09-13 22:08:16 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2011-09-13 22:08:16 +0000 |
| commit | acca089617b60d966c96b5b56d6e0c7d27acf2c4 (patch) | |
| tree | 35b5053e10e5e2e269a5270e51b316c1f73bceae /clang/test/CodeGen | |
| parent | 91672b3c0306bde8b44f38c541d59cd8422e3f93 (diff) | |
| download | bcm5719-llvm-acca089617b60d966c96b5b56d6e0c7d27acf2c4.tar.gz bcm5719-llvm-acca089617b60d966c96b5b56d6e0c7d27acf2c4.zip | |
Revert r139643 while I look into it; it's breaking selfhost.
llvm-svn: 139648
Diffstat (limited to 'clang/test/CodeGen')
| -rw-r--r-- | clang/test/CodeGen/Atomics.c | 17 | ||||
| -rw-r--r-- | clang/test/CodeGen/atomic.c | 6 |
2 files changed, 13 insertions, 10 deletions
diff --git a/clang/test/CodeGen/Atomics.c b/clang/test/CodeGen/Atomics.c index c440b6c1909..e5a5812f462 100644 --- a/clang/test/CodeGen/Atomics.c +++ b/clang/test/CodeGen/Atomics.c @@ -192,12 +192,13 @@ void test_lock (void) __sync_synchronize (); // CHECK: fence seq_cst - __sync_lock_release (&sc); // CHECK: store atomic {{.*}} release, align 1 - __sync_lock_release (&uc); // CHECK: store atomic {{.*}} release, align 1 - __sync_lock_release (&ss); // CHECK: store atomic {{.*}} release, align 2 - __sync_lock_release (&us); /// CHECK: store atomic {{.*}} release, align 2 - __sync_lock_release (&si); // CHECK: store atomic {{.*}} release, align 4 - __sync_lock_release (&ui); // CHECK: store atomic {{.*}} release, align 4 - __sync_lock_release (&sll); // CHECK: store atomic {{.*}} release, align 8 - __sync_lock_release (&ull); // CHECK: store atomic {{.*}} release, align 8 + // FIXME: These are wrong! + __sync_lock_release (&sc); // CHECK: store volatile + __sync_lock_release (&uc); // CHECK: store volatile + __sync_lock_release (&ss); // CHECK: store volatile + __sync_lock_release (&us); // CHECK: store volatile + __sync_lock_release (&si); // CHECK: store volatile + __sync_lock_release (&ui); // CHECK: store volatile + __sync_lock_release (&sll); // CHECK: store volatile + __sync_lock_release (&ull); // CHECK: store volatile } diff --git a/clang/test/CodeGen/atomic.c b/clang/test/CodeGen/atomic.c index c8f4fd09bbc..a0adac8e1c5 100644 --- a/clang/test/CodeGen/atomic.c +++ b/clang/test/CodeGen/atomic.c @@ -75,7 +75,8 @@ int atomic(void) { // CHECK: cmpxchg i32* null, i32 0, i32 0 seq_cst __sync_lock_release(&val); - // CHECK: store atomic {{.*}} release, align 4 + // FIXME: WRONG! + // CHECK: store volatile i32 0, i32* __sync_synchronize (); // CHECK: fence seq_cst @@ -87,7 +88,8 @@ int atomic(void) { void release_return(int *lock) { // Ensure this is actually returning void all the way through. return __sync_lock_release(lock); - // CHECK: store atomic {{.*}} release, align 4 + // FIXME: WRONG! + // CHECK: store volatile i32 0, i32* } |

