rename test
[oota-llvm.git] / test / CodeGen / ARM / globals.ll
1 ; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=static | \
2 ; RUN:   not grep {L_G\$non_lazy_ptr}
3 ; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=dynamic-no-pic | \
4 ; RUN:   grep {L_G\$non_lazy_ptr} | count 2
5 ; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=pic | \
6 ; RUN:   grep {ldr.*pc} | count 1
7 ; RUN: llc < %s -mtriple=arm-linux-gnueabi -relocation-model=pic | \
8 ; RUN:   grep {GOT} | count 1
9
10 @G = external global i32
11
12 define i32 @test1() {
13         %tmp = load i32* @G
14         ret i32 %tmp
15 }