llvm.org GIT mirror llvm / 027f388
make this harder git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31779 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 26 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
11 ; RUN: llvm-as < %s | llc -march=ppc32 -enable-ppc-preinc | not grep addi &&
22 ; RUN: llvm-as < %s | llc -march=ppc64 -enable-ppc-preinc &&
33 ; RUN: llvm-as < %s | llc -march=ppc64 -enable-ppc-preinc | not grep addi
4 %Glob = global ulong 4
45
56 int *%test0(int *%X, int *%dest) {
67 %Y = getelementptr int* %X, int 4
3233 ret ushort* %Y
3334 }
3435
36 short *%test3a(short *%X, long *%dest) {
37 %Y = getelementptr short* %X, int 4
38 %A = load short* %Y
39 %B = cast short %A to long
40 store long %B, long* %dest
41 ret short* %Y
42 }
3543
3644 long *%test4(long *%X, long *%dest) {
3745 %Y = getelementptr long* %X, int 4
3947 store long %A, long* %dest
4048 ret long* %Y
4149 }
50
51 ushort *%test5(ushort *%X) {
52 %Y = getelementptr ushort* %X, int 4
53 store ushort 7, ushort* %Y
54 ret ushort* %Y
55 }
56
57 ulong *%test6(ulong *%X, ulong %A) {
58 %Y = getelementptr ulong* %X, int 4
59 store ulong %A, ulong* %Y
60 ret ulong* %Y
61 }
62
63 ulong *%test7(ulong *%X, ulong %A) {
64 store ulong %A, ulong* %Glob
65 ret ulong *%Glob
66 }
67