aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Alpha/wmb.ll
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2008-02-16 01:24:58 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2008-02-16 01:24:58 +0000
commit22c5c1b2dfcb1da6a7ebfebea903401fc77d56e6 (patch)
tree2e65d654e3f499c5538ca7ef024a0c7c76f9d3f4 /test/CodeGen/Alpha/wmb.ll
parent527c250a9080a5b6cf0053a6215037c3769ff4a0 (diff)
downloadexternal_llvm-22c5c1b2dfcb1da6a7ebfebea903401fc77d56e6.zip
external_llvm-22c5c1b2dfcb1da6a7ebfebea903401fc77d56e6.tar.gz
external_llvm-22c5c1b2dfcb1da6a7ebfebea903401fc77d56e6.tar.bz2
llvm.memory.barrier, and impl for x86 and alpha
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47204 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Alpha/wmb.ll')
-rw-r--r--test/CodeGen/Alpha/wmb.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/Alpha/wmb.ll b/test/CodeGen/Alpha/wmb.ll
new file mode 100644
index 0000000..f745cd5
--- /dev/null
+++ b/test/CodeGen/Alpha/wmb.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc -march=alpha | grep wmb
+
+declare void @llvm.memory.barrier( i1 , i1 , i1 , i1 , i1)
+
+define void @test() {
+ call void @llvm.memory.barrier( i1 false, i1 false, i1 false, i1 true , i1 true)
+ ret void
+}