For PR1319: Upgrade to use new test harness
[oota-llvm.git] / test / CodeGen / ARM / load-global.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm
2 ; RUN: llvm-upgrade < %s | llvm-as | \
3 ; RUN:   llc -mtriple=arm-apple-darwin -relocation-model=dynamic-no-pic | \
4 ; RUN:   grep {L_G\$non_lazy_ptr} | wc -l | grep 2
5 ; RUN: llvm-upgrade < %s | llvm-as | \
6 ; RUN:   llc -mtriple=arm-apple-darwin -relocation-model=pic | \
7 ; RUN:   grep {ldr.*pc} | wc -l | grep 1
8
9 %G = external global int
10
11 int %test1() {
12         %tmp = load int* %G
13         ret int %tmp
14 }