2009-09-09 07:54:48 +08:00
|
|
|
; RUN: llc < %s -mtriple=i386-apple-darwin9 | FileCheck %s
|
2008-12-05 09:06:39 +08:00
|
|
|
|
|
|
|
@x = common 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: movl _x, %eax
|
|
|
|
; CHECK: .comm _x,4
|
2015-02-28 05:17:42 +08:00
|
|
|
%0 = load i32, i32* @x, align 4 ; <i32> [#uses=1]
|
2008-12-05 09:06:39 +08:00
|
|
|
ret i32 %0
|
|
|
|
}
|