blob: c948f69af352fddeaf4370116ff0a439bfe89378 [file] [log] [blame]
Reid Spencer1c0c94d2007-04-15 19:11:47 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
Dan Gohman28beeea2007-08-15 13:36:28 +00002; RUN: grep {str.*\\!} | count 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}