blob: 299fa593d97dd18de2b0b19e103f0ee46a4f14c1 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | \
Dan Gohman2d65d352009-08-25 15:38:29 +00002; RUN: llc -mtriple=i686-pc-linux-gnu -relocation-model=pic -o %t
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
Dan Gohman8c89a502007-08-15 13:36:28 +00004; RUN: grep piclabel %t | count 3
5; RUN: grep GOT %t | count 3
Dan Gohman65fa0cd2007-08-15 13:45:35 +00006; RUN: not grep GOTOFF %t
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007
8@ptr = external global i32*
9@dst = external global i32
10@src = external global i32
11
Chris Lattner21694472009-06-24 19:48:04 +000012define void @foo() nounwind {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013entry:
14 store i32* @dst, i32** @ptr
15 %tmp.s = load i32* @src
16 store i32 %tmp.s, i32* @dst
17 ret void
18}
19