diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-09-26 23:15:09 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-09-26 23:15:09 +0000 |
commit | 184944acdfb74041a2362af904e6eda3f0d3f645 (patch) | |
tree | a2f0267fc88d1f9038f8c1c9370862e878b8cda4 /test/CodeGen/X86/2010-10-08-cmpxchg8b.ll | |
parent | 2dafe200ca2708ec08656e51a52ce4d718e8a1d6 (diff) | |
download | llvm-184944acdfb74041a2362af904e6eda3f0d3f645.tar.gz llvm-184944acdfb74041a2362af904e6eda3f0d3f645.tar.bz2 llvm-184944acdfb74041a2362af904e6eda3f0d3f645.tar.xz |
Convert a bunch more tests over to the new atomic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2010-10-08-cmpxchg8b.ll')
-rw-r--r-- | test/CodeGen/X86/2010-10-08-cmpxchg8b.ll | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/CodeGen/X86/2010-10-08-cmpxchg8b.ll b/test/CodeGen/X86/2010-10-08-cmpxchg8b.ll index 40e7f017dc..0e4118a2a9 100644 --- a/test/CodeGen/X86/2010-10-08-cmpxchg8b.ll +++ b/test/CodeGen/X86/2010-10-08-cmpxchg8b.ll @@ -18,11 +18,9 @@ entry: loop: ; CHECK: lock ; CHECK-NEXT: cmpxchg8b - %r = call i64 @llvm.atomic.cmp.swap.i64.p0i64(i64* %ptr, i64 0, i64 1) + %r = cmpxchg i64* %ptr, i64 0, i64 1 monotonic %stored1 = icmp eq i64 %r, 0 br i1 %stored1, label %loop, label %continue continue: ret void } - -declare i64 @llvm.atomic.cmp.swap.i64.p0i64(i64* nocapture, i64, i64) nounwind |