blob: 9f295319d1ca9998217883c6be951a1b296b001f [file] [log] [blame]
Anton Korobeynikov5032e5a2007-01-17 10:33:08 +00001; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic &&
2; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep _GLOBAL_OFFSET_TABLE_ &&
3; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep piclabel | wc -l | grep 3 &&
4; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep GOT | wc -l | grep 3
5
6%ptr = global i32* null
7%dst = global i32 0
8%src = global i32 0
9
10define void %foo() {
11entry:
12 store i32* %dst, i32** %ptr
13 %tmp.s = load i32* %src
14 store i32 %tmp.s, i32* %dst
15 ret void
16}
17