blob: a12e742db9f81e6ad2ca37eefa3eb77b08119472 [file] [log] [blame]
Anton Korobeynikov7f705592007-01-12 19:20:47 +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; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep GOTOFF | wc -l | grep 0
6
7%ptr = external global i32*
8%dst = external global i32
9%src = external global i32
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