Add Thumb2 pc relative add.
[oota-llvm.git] / test / CodeGen / Thumb2 / load-global.ll
1 ; RUN: llvm-as < %s | llc -mtriple=thumbv7-apple-darwin
2 ; RUN: llvm-as < %s | llc -mtriple=thumbv7-apple-darwin -relocation-model=pic | grep add | grep pc
3
4 @G = external global i32
5
6 define i32 @test1() {
7         %tmp = load i32* @G
8         ret i32 %tmp
9 }