1 ; RUN: llvm-as < %s | \
2 ; RUN: llc -mtriple=i686-pc-linux-gnu -relocation-model=pic -o %t -f
3 ; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
4 ; RUN: grep piclabel %t | count 3
5 ; RUN: grep GOT %t | count 3
6 ; RUN: not grep GOTOFF %t
8 @ptr = external global i32*
9 @dst = external global i32
10 @src = external global i32
12 define void @foo() nounwind {
14 store i32* @dst, i32** @ptr
15 %tmp.s = load i32* @src
16 store i32 %tmp.s, i32* @dst