preincrement case we miss. xfail until we catch it
authorChris Lattner <sabre@nondot.org>
Wed, 8 Nov 2006 01:44:35 +0000 (01:44 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 8 Nov 2006 01:44:35 +0000 (01:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31534 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/PowerPC/mem_update.ll [new file with mode: 0644]

diff --git a/test/CodeGen/PowerPC/mem_update.ll b/test/CodeGen/PowerPC/mem_update.ll
new file mode 100644 (file)
index 0000000..5e665f8
--- /dev/null
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llc -march=ppc32 &&
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep addi
+
+; XFAIL: *
+
+int *%test(int *%X,  int *%dest) {
+       %Y = getelementptr int* %X, int 4
+       %A = load int* %Y
+       store int %A, int* %dest
+       ret int* %Y
+}