David Goodwin | d1fa120 | 2009-07-01 00:01:13 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | \ |
| 2 | ; RUN: llc -mtriple=thumbv7-apple-darwin -relocation-model=static | \ |
| 3 | ; RUN: not grep {L_G\$non_lazy_ptr} |
| 4 | ; RUN: llvm-as < %s | \ |
| 5 | ; RUN: llc -mtriple=thumbv7-apple-darwin -relocation-model=dynamic-no-pic | \ |
| 6 | ; RUN: grep {L_G\$non_lazy_ptr} | count 2 |
| 7 | ; RUN: llvm-as < %s | \ |
| 8 | ; RUN: llc -mtriple=thumbv7-apple-darwin -relocation-model=pic | \ |
| 9 | ; RUN: grep {ldr.*pc} | count 1 |
| 10 | ; RUN: llvm-as < %s | \ |
| 11 | ; RUN: llc -mtriple=thumbv7-linux-gnueabi -relocation-model=pic | \ |
| 12 | ; RUN: grep {GOT} | count 1 |
Evan Cheng | a09b9ca | 2009-06-24 23:47:58 +0000 | [diff] [blame] | 13 | |
| 14 | @G = external global i32 |
| 15 | |
| 16 | define i32 @test1() { |
| 17 | %tmp = load i32* @G |
| 18 | ret i32 %tmp |
| 19 | } |