0ffcb9575d5c2ac4a83aed2fb7ebfbb7e4864ea9
[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 }