mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 07:09:08 +00:00
make this test more interesting
llvm-svn: 31619
This commit is contained in:
parent
6836cbaf9d
commit
36b5ac0dd9
@ -3,9 +3,40 @@
|
||||
|
||||
; XFAIL: *
|
||||
|
||||
int *%test(int *%X, int *%dest) {
|
||||
int *%test0(int *%X, int *%dest) {
|
||||
%Y = getelementptr int* %X, int 4
|
||||
%A = load int* %Y
|
||||
store int %A, int* %dest
|
||||
ret int* %Y
|
||||
}
|
||||
|
||||
int *%test1(int *%X, int *%dest) {
|
||||
%Y = getelementptr int* %X, int 4
|
||||
%A = load int* %Y
|
||||
store int %A, int* %dest
|
||||
ret int* %Y
|
||||
}
|
||||
|
||||
short *%test2(short *%X, int *%dest) {
|
||||
%Y = getelementptr short* %X, int 4
|
||||
%A = load short* %Y
|
||||
%B = cast short %A to int
|
||||
store int %B, int* %dest
|
||||
ret short* %Y
|
||||
}
|
||||
|
||||
ushort *%test3(ushort *%X, int *%dest) {
|
||||
%Y = getelementptr ushort* %X, int 4
|
||||
%A = load ushort* %Y
|
||||
%B = cast ushort %A to int
|
||||
store int %B, int* %dest
|
||||
ret ushort* %Y
|
||||
}
|
||||
|
||||
|
||||
long *%test4(long *%X, long *%dest) {
|
||||
%Y = getelementptr long* %X, int 4
|
||||
%A = load long* %Y
|
||||
store long %A, long* %dest
|
||||
ret long* %Y
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user