blob: fe9bf82f3715f533007dc98e3bd93b10cf9304bd [file] [log] [blame]
Evan Cheng85350722007-05-04 00:29:34 +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 | \
Reid Spencer1c0c94d2007-04-15 19:11:47 +00005; RUN: llc -mtriple=arm-apple-darwin -relocation-model=dynamic-no-pic | \
6; RUN: grep {L_G\$non_lazy_ptr} | wc -l | grep 2
Evan Cheng85350722007-05-04 00:29:34 +00007; RUN: llvm-as < %s | \
Reid Spencer1c0c94d2007-04-15 19:11:47 +00008; RUN: llc -mtriple=arm-apple-darwin -relocation-model=pic | \
9; RUN: grep {ldr.*pc} | wc -l | grep 1
Evan Cheng85350722007-05-04 00:29:34 +000010; RUN: llvm-as < %s | \
Lauro Ramos Venancio0ae4a332007-04-22 00:04:12 +000011; RUN: llc -mtriple=arm-linux-gnueabi -relocation-model=pic | \
12; RUN: grep {GOT} | wc -l | grep 1
Evan Cheng02b985c2007-01-19 09:20:23 +000013
Evan Cheng85350722007-05-04 00:29:34 +000014@G = external global i32
Evan Cheng02b985c2007-01-19 09:20:23 +000015
Evan Cheng85350722007-05-04 00:29:34 +000016define i32 @test1() {
17 %tmp = load i32* @G
18 ret i32 %tmp
Evan Cheng02b985c2007-01-19 09:20:23 +000019}