summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Generic/2008-02-20-MatchingMem.ll
diff options
context:
space:
mode:
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 0000000..da1aeb5
--- /dev/null
+++ b/test/CodeGen/Generic/2008-02-20-MatchingMem.ll
@@ -0,0 +1,9 @@
+; RUN: llc < %s
+; 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
+}
+