blob: fe9bf82f3715f533007dc98e3bd93b10cf9304bd [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | \
2; RUN: llc -mtriple=arm-apple-darwin -relocation-model=static | \
3; RUN: not grep {L_G\$non_lazy_ptr}
4; RUN: llvm-as < %s | \
5; RUN: llc -mtriple=arm-apple-darwin -relocation-model=dynamic-no-pic | \
6; RUN: grep {L_G\$non_lazy_ptr} | wc -l | grep 2
7; RUN: llvm-as < %s | \
8; RUN: llc -mtriple=arm-apple-darwin -relocation-model=pic | \
9; RUN: grep {ldr.*pc} | wc -l | grep 1
10; RUN: llvm-as < %s | \
11; RUN: llc -mtriple=arm-linux-gnueabi -relocation-model=pic | \
12; RUN: grep {GOT} | wc -l | grep 1
13
14@G = external global i32
15
16define i32 @test1() {
17 %tmp = load i32* @G
18 ret i32 %tmp
19}