blob: ab07718ad237f535e68d567de6fc1b80ed66b129 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; 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
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
12define void @foo() {
13entry:
14 store i32* @dst, i32** @ptr
15 %tmp.s = load i32* @src
16 store i32 %tmp.s, i32* @dst
17 ret void
18}
19