summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/atomic.c
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-10-27 20:58:56 +0000
committerJohn McCall <rjmccall@apple.com>2010-10-27 20:58:56 +0000
commit3a7f6926d16c53748f29253581ed33304a3cfb0c (patch)
treee2319d165e05d692ca7489f1eec9e316df6ed3d9 /clang/test/CodeGen/atomic.c
parent5e7cb5fc273f23ba0f5780a38564834cdf14db5a (diff)
downloadbcm5719-llvm-3a7f6926d16c53748f29253581ed33304a3cfb0c.tar.gz
bcm5719-llvm-3a7f6926d16c53748f29253581ed33304a3cfb0c.zip
Restore r117403 (fixing IR gen for bool atomics), this time being less
aggressive about the form we expect bools to be in. I don't really have time to fix all the sources right now. llvm-svn: 117486
Diffstat (limited to 'clang/test/CodeGen/atomic.c')
-rw-r--r--clang/test/CodeGen/atomic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/CodeGen/atomic.c b/clang/test/CodeGen/atomic.c
index e3bc2185b75..4a7c13f03c4 100644
--- a/clang/test/CodeGen/atomic.c
+++ b/clang/test/CodeGen/atomic.c
@@ -102,8 +102,7 @@ int atomic(void) {
if ( __sync_val_compare_and_swap(&valb, 0, 1)) {
// CHECK: call void @llvm.memory.barrier(i1 true, i1 true, i1 true, i1 true, i1 true)
-// FIXME: Doesn't seem right!
- // CHECK: call i8 @llvm.atomic.cmp.swap.i8.p0i8(i8* %valb, i8 0, i8 -1)
+ // CHECK: call i8 @llvm.atomic.cmp.swap.i8.p0i8(i8* %valb, i8 0, i8 1)
// CHECK: call void @llvm.memory.barrier(i1 true, i1 true, i1 true, i1 true, i1 true)
old = 42;
}
OpenPOWER on IntegriCloud