diff options
-rw-r--r-- | llvm/test/Regression/CodeGen/PowerPC/mem_update.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/PowerPC/mem_update.ll b/llvm/test/Regression/CodeGen/PowerPC/mem_update.ll new file mode 100644 index 00000000000..5e665f8b9a6 --- /dev/null +++ b/llvm/test/Regression/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 +} |