blob: 43485c301c2d9b9f2538fab132aec1a6c409a1f4 [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
4; RUN: grep piclabel %t | wc -l | grep 3
5; RUN: grep GOT %t | wc -l | grep 3
6
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