Reference to hidden symbols do not have to go through non-lazy pointer in non-pic...
[oota-llvm.git] / test / CodeGen / X86 / hidden-vis-4.ll
1 ; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin9 | FileCheck %s
2
3 @x = common hidden global i32 0         ; <i32*> [#uses=1]
4
5 define i32 @t() nounwind readonly {
6 entry:
7 ; CHECK: t:
8 ; CHECK: movl _x, %eax
9 ; CHECK: .comm _x,4
10         %0 = load i32* @x, align 4              ; <i32> [#uses=1]
11         ret i32 %0
12 }