summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r--clang/test/CodeGen/Atomics.c17
-rw-r--r--clang/test/CodeGen/atomic.c6
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*
}
OpenPOWER on IntegriCloud