blob: 245cae8537cfeead60f189c8c2056247373bbcc0 [file] [log] [blame]
Chris Lattner062e7ec2009-07-09 01:07:22 +00001; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | FileCheck %s
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Chris Lattner062e7ec2009-07-09 01:07:22 +00003; CHECK: bar:
4; CHECK: call .Lllvm$1.$piclabel
5; CHECK: popl %ebx
6; CHECK: addl $_GLOBAL_OFFSET_TABLE_ + [.-.Lllvm$1.$piclabel], %ebx
7; CHECK: call foo@PLT
8
9
10define void @bar() nounwind {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011entry:
12 call void(...)* @foo()
13 br label %return
14return:
15 ret void
16}
17
18declare void @foo(...)