blob: b763daf480fb32fcd8d1c46b2b4e4e3887c00513 [file] [log] [blame]
Chris Lattnerdb486a62009-09-15 17:46:24 +00001; RUN: llvm-as < %s | llc -march=sparc --relocation-model=pic | grep _GLOBAL_OFFSET_TABLE_
2
3@foo = global i32 0 ; <i32*> [#uses=1]
4
5define i32 @func() nounwind readonly {
6entry:
7 %0 = load i32* @foo, align 4 ; <i32> [#uses=1]
8 ret i32 %0
9}