summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-08 01:44:35 +0000
committerChris Lattner <sabre@nondot.org>2006-11-08 01:44:35 +0000
commit97a6e8c8517dd74ab1b51df2f3cb37b0fa4369f9 (patch)
tree10e5cf267b6516ed016c11014f44f4980f7e605f /test
parent2c5d1851bbcb20adb79664ec16ab1f97b9142086 (diff)
downloadllvm-97a6e8c8517dd74ab1b51df2f3cb37b0fa4369f9.tar.gz
llvm-97a6e8c8517dd74ab1b51df2f3cb37b0fa4369f9.tar.bz2
llvm-97a6e8c8517dd74ab1b51df2f3cb37b0fa4369f9.tar.xz
preincrement case we miss. xfail until we catch it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/PowerPC/mem_update.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/mem_update.ll b/test/CodeGen/PowerPC/mem_update.ll
new file mode 100644
index 0000000000..5e665f8b9a
--- /dev/null
+++ b/test/CodeGen/PowerPC/mem_update.ll
@@ -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
+}