Jim Grosbach | 6f09fcf | 2011-09-30 17:41:35 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -relocation-model=dynamic-no-pic -mtriple=arm-apple-darwin | FileCheck %s |
Evan Cheng | c3ccc1a | 2008-12-06 02:00:55 +0000 | [diff] [blame] | 2 | |
| 3 | @x = weak hidden global i32 0 ; <i32*> [#uses=1] |
| 4 | |
| 5 | define i32 @t() nounwind readonly { |
| 6 | entry: |
Evan Cheng | 63476a8 | 2009-09-03 07:04:02 +0000 | [diff] [blame] | 7 | ; CHECK: t: |
| 8 | ; CHECK: ldr |
| 9 | ; CHECK-NEXT: ldr |
Evan Cheng | c3ccc1a | 2008-12-06 02:00:55 +0000 | [diff] [blame] | 10 | %0 = load i32* @x, align 4 ; <i32> [#uses=1] |
| 11 | ret i32 %0 |
| 12 | } |