make this harder

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31779 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-11-16 01:22:52 +00:00
parent 0403862158
commit 027f388ab8

View File

@ -2,6 +2,7 @@
; RUN: llvm-as < %s | llc -march=ppc32 -enable-ppc-preinc | not grep addi &&
; RUN: llvm-as < %s | llc -march=ppc64 -enable-ppc-preinc &&
; RUN: llvm-as < %s | llc -march=ppc64 -enable-ppc-preinc | not grep addi
%Glob = global ulong 4
int *%test0(int *%X, int *%dest) {
%Y = getelementptr int* %X, int 4
@ -33,6 +34,13 @@ ushort *%test3(ushort *%X, int *%dest) {
ret ushort* %Y
}
short *%test3a(short *%X, long *%dest) {
%Y = getelementptr short* %X, int 4
%A = load short* %Y
%B = cast short %A to long
store long %B, long* %dest
ret short* %Y
}
long *%test4(long *%X, long *%dest) {
%Y = getelementptr long* %X, int 4
@ -40,3 +48,21 @@ long *%test4(long *%X, long *%dest) {
store long %A, long* %dest
ret long* %Y
}
ushort *%test5(ushort *%X) {
%Y = getelementptr ushort* %X, int 4
store ushort 7, ushort* %Y
ret ushort* %Y
}
ulong *%test6(ulong *%X, ulong %A) {
%Y = getelementptr ulong* %X, int 4
store ulong %A, ulong* %Y
ret ulong* %Y
}
ulong *%test7(ulong *%X, ulong %A) {
store ulong %A, ulong* %Glob
ret ulong *%Glob
}