blob: d55da1f4c6aff6b4848068656398a0dc8d05f292 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic \
2; RUN: -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 Gohmanf17a25c2007-07-18 16:29:46 +00006
7@ptr = global i32* null
8@dst = global i32 0
9@src = global i32 0
10
11define void @foo() {
12entry:
13 store i32* @dst, i32** @ptr
14 %tmp.s = load i32* @src
15 store i32 %tmp.s, i32* @dst
16 ret void
17}
18