Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \ |
2 | ; RUN: grep {str.*\\!} | wc -l | grep 2 | ||||
3 | |||||
4 | void %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 | |||||
12 | short *%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 | } |