summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/2008-02-20-MatchingMem.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-21 05:27:08 +0000
committerChris Lattner <sabre@nondot.org>2008-02-21 05:27:08 +0000
commit2bedd7359cb5cce27eae63997c7afc8e24d9e702 (patch)
tree81dc0938732f55d420336dfb4017f434ce3ab4db /test/CodeGen/Generic/2008-02-20-MatchingMem.ll
parent7cbeb2431c7264d0848d1343f43914f970828ac7 (diff)
testcase for PR1133
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47427 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic/2008-02-20-MatchingMem.ll')
-rw-r--r--test/CodeGen/Generic/2008-02-20-MatchingMem.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2008-02-20-MatchingMem.ll b/test/CodeGen/Generic/2008-02-20-MatchingMem.ll
new file mode 100644
index 00000000000..ef60f92fa05
--- /dev/null
+++ b/test/CodeGen/Generic/2008-02-20-MatchingMem.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc
+; PR1133
+define void @test(i32* %X) nounwind {
+entry:
+ %tmp1 = getelementptr i32* %X, i32 10 ; <i32*> [#uses=2]
+ tail call void asm sideeffect " $0 $1 ", "=*im,*im,~{memory}"( i32* %tmp1, i32* %tmp1 ) nounwind
+ ret void
+}
+