diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-10-27 17:13:49 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-10-27 17:13:49 +0000 |
commit | 11893327d056a7ebd820da8f00a3286e7430a91c (patch) | |
tree | 682cbed34301c13baa54b76b22635d44645ac20e /test/CodeGen/atomic.c | |
parent | 354e712c81fbb07c0ce5f06180788b25fffa1b56 (diff) |
Revert r117403 as it caused PR8480.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/atomic.c')
-rw-r--r-- | test/CodeGen/atomic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGen/atomic.c b/test/CodeGen/atomic.c index 4a7c13f03c..e3bc2185b7 100644 --- a/test/CodeGen/atomic.c +++ b/test/CodeGen/atomic.c @@ -102,7 +102,8 @@ 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) - // CHECK: call i8 @llvm.atomic.cmp.swap.i8.p0i8(i8* %valb, i8 0, i8 1) +// FIXME: Doesn't seem right! + // 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; } |