llvm.org GIT mirror llvm / 42b51e4
make this test more interesting git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31619 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 32 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
22
33 ; XFAIL: *
44
5 int *%test(int *%X, int *%dest) {
5 int *%test0(int *%X, int *%dest) {
66 %Y = getelementptr int* %X, int 4
77 %A = load int* %Y
88 store int %A, int* %dest
99 ret int* %Y
1010 }
11
12 int *%test1(int *%X, int *%dest) {
13 %Y = getelementptr int* %X, int 4
14 %A = load int* %Y
15 store int %A, int* %dest
16 ret int* %Y
17 }
18
19 short *%test2(short *%X, int *%dest) {
20 %Y = getelementptr short* %X, int 4
21 %A = load short* %Y
22 %B = cast short %A to int
23 store int %B, int* %dest
24 ret short* %Y
25 }
26
27 ushort *%test3(ushort *%X, int *%dest) {
28 %Y = getelementptr ushort* %X, int 4
29 %A = load ushort* %Y
30 %B = cast ushort %A to int
31 store int %B, int* %dest
32 ret ushort* %Y
33 }
34
35
36 long *%test4(long *%X, long *%dest) {
37 %Y = getelementptr long* %X, int 4
38 %A = load long* %Y
39 store long %A, long* %dest
40 ret long* %Y
41 }