1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -enable-ppc-preinc | \
3 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -enable-ppc-preinc | \
7 int *%test0(int *%X, int *%dest) {
8 %Y = getelementptr int* %X, int 4
10 store int %A, int* %dest
14 int *%test1(int *%X, int *%dest) {
15 %Y = getelementptr int* %X, int 4
17 store int %A, int* %dest
21 short *%test2(short *%X, int *%dest) {
22 %Y = getelementptr short* %X, int 4
24 %B = cast short %A to int
25 store int %B, int* %dest
29 ushort *%test3(ushort *%X, int *%dest) {
30 %Y = getelementptr ushort* %X, int 4
32 %B = cast ushort %A to int
33 store int %B, int* %dest
37 short *%test3a(short *%X, long *%dest) {
38 %Y = getelementptr short* %X, int 4
40 %B = cast short %A to long
41 store long %B, long* %dest
45 long *%test4(long *%X, long *%dest) {
46 %Y = getelementptr long* %X, int 4
48 store long %A, long* %dest
52 ushort *%test5(ushort *%X) {
53 %Y = getelementptr ushort* %X, int 4
54 store ushort 7, ushort* %Y
58 ulong *%test6(ulong *%X, ulong %A) {
59 %Y = getelementptr ulong* %X, int 4
60 store ulong %A, ulong* %Y
64 ulong *%test7(ulong *%X, ulong %A) {
65 store ulong %A, ulong* %Glob