2011-10-01 01:41:35 +08:00
|
|
|
; RUN: llc < %s -relocation-model=dynamic-no-pic -mtriple=arm-apple-darwin | FileCheck %s
|
2008-12-06 10:00:55 +08:00
|
|
|
|
|
|
|
@x = weak hidden global i32 0 ; <i32*> [#uses=1]
|
|
|
|
|
|
|
|
define i32 @t() nounwind readonly {
|
|
|
|
entry:
|
2013-07-14 14:24:09 +08:00
|
|
|
; CHECK-LABEL: t:
|
2009-09-03 15:04:02 +08:00
|
|
|
; CHECK: ldr
|
|
|
|
; CHECK-NEXT: ldr
|
2015-02-28 05:17:42 +08:00
|
|
|
%0 = load i32, i32* @x, align 4 ; <i32> [#uses=1]
|
2008-12-06 10:00:55 +08:00
|
|
|
ret i32 %0
|
|
|
|
}
|