aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PowerPC/atomic-1.ll
diff options
context:
space:
mode:
authorNowar Gu <nowar100@gmail.com>2011-06-23 11:08:11 +0800
committerNowar Gu <nowar100@gmail.com>2011-06-23 11:09:52 +0800
commitbb5c18c80e7ae4ce49eb9067b664f0559ec50965 (patch)
tree4f610e4e03d1c14658e597ce789cb0244fd9f4f8 /test/CodeGen/PowerPC/atomic-1.ll
parent71fea9a88608e9c8fe8a8a523367878e279c3e90 (diff)
parent2fa82bc3da45d272f12a96a61074b637faa62e0b (diff)
downloadexternal_llvm-bb5c18c80e7ae4ce49eb9067b664f0559ec50965.zip
external_llvm-bb5c18c80e7ae4ce49eb9067b664f0559ec50965.tar.gz
external_llvm-bb5c18c80e7ae4ce49eb9067b664f0559ec50965.tar.bz2
Merge upstream to r133679 at Thu. 23th Jun 2011.
Diffstat (limited to 'test/CodeGen/PowerPC/atomic-1.ll')
-rw-r--r--test/CodeGen/PowerPC/atomic-1.ll26
1 files changed, 14 insertions, 12 deletions
diff --git a/test/CodeGen/PowerPC/atomic-1.ll b/test/CodeGen/PowerPC/atomic-1.ll
index ec4e42d..a2cf170 100644
--- a/test/CodeGen/PowerPC/atomic-1.ll
+++ b/test/CodeGen/PowerPC/atomic-1.ll
@@ -1,21 +1,23 @@
; RUN: llc < %s -march=ppc32 | grep lwarx | count 3
; RUN: llc < %s -march=ppc32 | grep stwcx. | count 4
-define i32 @exchange_and_add(i32* %mem, i32 %val) nounwind {
- %tmp = call i32 @llvm.atomic.load.add.i32( i32* %mem, i32 %val )
- ret i32 %tmp
+define i32 @exchange_and_add(i32* %mem, i32 %val) nounwind {
+ %tmp = call i32 @llvm.atomic.load.add.i32.p0i32(i32* %mem, i32 %val)
+ ret i32 %tmp
}
-define i32 @exchange_and_cmp(i32* %mem) nounwind {
- %tmp = call i32 @llvm.atomic.cmp.swap.i32( i32* %mem, i32 0, i32 1 )
- ret i32 %tmp
+define i32 @exchange_and_cmp(i32* %mem) nounwind {
+ %tmp = call i32 @llvm.atomic.cmp.swap.i32.p0i32(i32* %mem, i32 0, i32 1)
+ ret i32 %tmp
}
-define i32 @exchange(i32* %mem, i32 %val) nounwind {
- %tmp = call i32 @llvm.atomic.swap.i32( i32* %mem, i32 1 )
- ret i32 %tmp
+define i32 @exchange(i32* %mem, i32 %val) nounwind {
+ %tmp = call i32 @llvm.atomic.swap.i32.p0i32(i32* %mem, i32 1)
+ ret i32 %tmp
}
-declare i32 @llvm.atomic.load.add.i32(i32*, i32) nounwind
-declare i32 @llvm.atomic.cmp.swap.i32(i32*, i32, i32) nounwind
-declare i32 @llvm.atomic.swap.i32(i32*, i32) nounwind
+declare i32 @llvm.atomic.load.add.i32.p0i32(i32* nocapture, i32) nounwind
+
+declare i32 @llvm.atomic.cmp.swap.i32.p0i32(i32* nocapture, i32, i32) nounwind
+
+declare i32 @llvm.atomic.swap.i32.p0i32(i32* nocapture, i32) nounwind