summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/mem_update.ll
blob: 5e665f8b9a64c06a7c99fe80da847d5ad8e7889d (plain)
1
2
3
4
5
6
7
8
9
10
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
}