blob: 56a4a477f510cd817f6d08ecba23a8b7ddad8db6 [file] [log] [blame]
Dan Gohman0cb2f672009-09-11 18:36:27 +00001; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=static | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; RUN: not grep {L_G\$non_lazy_ptr}
Dan Gohman0cb2f672009-09-11 18:36:27 +00003; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=dynamic-no-pic | \
Dan Gohman8c89a502007-08-15 13:36:28 +00004; RUN: grep {L_G\$non_lazy_ptr} | count 2
Dan Gohman0cb2f672009-09-11 18:36:27 +00005; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=pic | \
Dan Gohman8c89a502007-08-15 13:36:28 +00006; RUN: grep {ldr.*pc} | count 1
Dan Gohman0cb2f672009-09-11 18:36:27 +00007; RUN: llc < %s -mtriple=arm-linux-gnueabi -relocation-model=pic | \
Dan Gohman8c89a502007-08-15 13:36:28 +00008; RUN: grep {GOT} | count 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009
10@G = external global i32
11
12define i32 @test1() {
13 %tmp = load i32* @G
14 ret i32 %tmp
15}