Dan Gohman | 0cb2f67 | 2009-09-11 18:36:27 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=static | \ |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 2 | ; RUN: not grep {L_G\$non_lazy_ptr} |
Dan Gohman | 0cb2f67 | 2009-09-11 18:36:27 +0000 | [diff] [blame] | 3 | ; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=dynamic-no-pic | \ |
Dan Gohman | 8c89a50 | 2007-08-15 13:36:28 +0000 | [diff] [blame] | 4 | ; RUN: grep {L_G\$non_lazy_ptr} | count 2 |
Dan Gohman | 0cb2f67 | 2009-09-11 18:36:27 +0000 | [diff] [blame] | 5 | ; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=pic | \ |
Dan Gohman | 8c89a50 | 2007-08-15 13:36:28 +0000 | [diff] [blame] | 6 | ; RUN: grep {ldr.*pc} | count 1 |
Dan Gohman | 0cb2f67 | 2009-09-11 18:36:27 +0000 | [diff] [blame] | 7 | ; RUN: llc < %s -mtriple=arm-linux-gnueabi -relocation-model=pic | \ |
Dan Gohman | 8c89a50 | 2007-08-15 13:36:28 +0000 | [diff] [blame] | 8 | ; RUN: grep {GOT} | count 1 |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 9 | |
| 10 | @G = external global i32 |
| 11 | |
| 12 | define i32 @test1() { |
| 13 | %tmp = load i32* @G |
| 14 | ret i32 %tmp |
| 15 | } |