fix an embarassing typo that resulted in llvm-gcc bootstrap miscompare
[llvm/avr.git] / test / CodeGen / ARM / load-global.ll
blob56a4a477f510cd817f6d08ecba23a8b7ddad8db6
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
10 @G = external global i32
12 define i32 @test1() {
13         %tmp = load i32* @G
14         ret i32 %tmp