blob: 69f9928df56e7ee6d1bd151db06d7b3298fc7863 [file] [log] [blame]
Reid Spencer1c0c94d2007-04-15 19:11:47 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
2; RUN: grep {str.*\\!} | wc -l | grep 2
Evan Cheng02b985c2007-01-19 09:20:23 +00003
4void %test1(int *%X, int *%A, int **%dest) {
5 %B = load int* %A
6 %Y = getelementptr int* %X, int 4
7 store int %B, int* %Y
8 store int* %Y, int** %dest
9 ret void
10}
11
12short *%test2(short *%X, int *%A) {
13 %B = load int* %A
14 %Y = getelementptr short* %X, int 4
15 %tmp = cast int %B to short
16 store short %tmp, short* %Y
17 ret short* %Y
18}