blob: ad085b690c994818228f0fb6282b9b1bf46fc259 [file] [log] [blame]
Evan Cheng02b985c2007-01-19 09:20:23 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
2; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "str.*\!" | wc -l | grep 2
3
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}