1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
2 ; RUN: grep {ldr.*\\!} | count 2
4 int *%test1(int *%X, int *%dest) {
5 %Y = getelementptr int* %X, int 4
7 store int %A, int* %dest
11 int %test2(int %a, int %b, int %c) {
12 %tmp1 = sub int %a, %b
13 %tmp2 = cast int %tmp1 to int*
14 %tmp3 = load int* %tmp2
15 %tmp4 = sub int %tmp1, %c
16 %tmp5 = add int %tmp4, %tmp3