1 ; RUN: llvm-as < %s | llc -march=arm | \
2 ; RUN: grep {ldr r0} | count 3
4 define i32 @f1(i32* %v) {
6 %tmp = load i32* %v ; <i32> [#uses=1]
10 define i32 @f2(i32* %v) {
12 %tmp2 = getelementptr i32* %v, i32 1023 ; <i32*> [#uses=1]
13 %tmp = load i32* %tmp2 ; <i32> [#uses=1]
17 define i32 @f3(i32* %v) {
19 %tmp2 = getelementptr i32* %v, i32 1024 ; <i32*> [#uses=1]
20 %tmp = load i32* %tmp2 ; <i32> [#uses=1]