remember to emit weak reference in one more case.
[oota-llvm.git] / test / CodeGen / ARM / load-global.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | \
2 ; RUN:   llc -mtriple=arm-apple-darwin -relocation-model=dynamic-no-pic | \
3 ; RUN:   grep {L_G\$non_lazy_ptr} | wc -l | grep 2
4 ; RUN: llvm-upgrade < %s | llvm-as | \
5 ; RUN:   llc -mtriple=arm-apple-darwin -relocation-model=pic | \
6 ; RUN:   grep {ldr.*pc} | wc -l | grep 1
7 ; RUN: llvm-upgrade < %s | llvm-as | \
8 ; RUN:   llc -mtriple=arm-linux-gnueabi -relocation-model=pic | \
9 ; RUN:   grep {GOT} | wc -l | grep 1
10
11 %G = external global int
12
13 int %test1() {
14         %tmp = load int* %G
15         ret int %tmp
16 }