diff options
author | Mon P Wang <wangmp@apple.com> | 2008-06-25 08:15:39 +0000 |
---|---|---|
committer | Mon P Wang <wangmp@apple.com> | 2008-06-25 08:15:39 +0000 |
commit | 28873106309db515d58889a4c4fa3e0a92d1b60e (patch) | |
tree | 55754230852c1d76c8058edec38ed42a47b3ddc7 /test/CodeGen/PowerPC/atomic-2.ll | |
parent | ea9e516e86b3a6ca1b3a5b374365735e1cca414d (diff) | |
download | llvm-28873106309db515d58889a4c4fa3e0a92d1b60e.tar.gz llvm-28873106309db515d58889a4c4fa3e0a92d1b60e.tar.bz2 llvm-28873106309db515d58889a4c4fa3e0a92d1b60e.tar.xz |
Added MemOperands to Atomic operations since Atomics touches memory.
Added abstract class MemSDNode for any Node that have an associated MemOperand
Changed atomic.lcs => atomic.cmp.swap, atomic.las => atomic.load.add, and
atomic.lss => atomic.load.sub
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52706 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/atomic-2.ll')
-rw-r--r-- | test/CodeGen/PowerPC/atomic-2.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/CodeGen/PowerPC/atomic-2.ll b/test/CodeGen/PowerPC/atomic-2.ll index 8e1ef1b0f8..2c7e2217d0 100644 --- a/test/CodeGen/PowerPC/atomic-2.ll +++ b/test/CodeGen/PowerPC/atomic-2.ll @@ -2,12 +2,12 @@ ; RUN: llvm-as < %s | llc -march=ppc64 | grep stdcx. | count 3 define i64 @exchange_and_add(i64* %mem, i64 %val) nounwind { - %tmp = call i64 @llvm.atomic.las.i64( i64* %mem, i64 %val ) + %tmp = call i64 @llvm.atomic.load.add.i64( i64* %mem, i64 %val ) ret i64 %tmp } define i64 @exchange_and_cmp(i64* %mem) nounwind { - %tmp = call i64 @llvm.atomic.lcs.i64( i64* %mem, i64 0, i64 1 ) + %tmp = call i64 @llvm.atomic.cmp.swap.i64( i64* %mem, i64 0, i64 1 ) ret i64 %tmp } @@ -16,6 +16,6 @@ define i64 @exchange(i64* %mem, i64 %val) nounwind { ret i64 %tmp } -declare i64 @llvm.atomic.las.i64(i64*, i64) nounwind -declare i64 @llvm.atomic.lcs.i64(i64*, i64, i64) nounwind +declare i64 @llvm.atomic.load.add.i64(i64*, i64) nounwind +declare i64 @llvm.atomic.cmp.swap.i64(i64*, i64, i64) nounwind declare i64 @llvm.atomic.swap.i64(i64*, i64) nounwind |