1; RUN: llc < %s  -tailcallopt -mtriple=i686-pc-linux-gnu -relocation-model=pic | FileCheck %s
2
3; This test uses guaranteed TCO so these will be tail calls, despite the early
4; binding issues.
5
6define protected fastcc i32 @tailcallee(i32 %a1, i32 %a2, i32 %a3, i32 %a4) {
7entry:
8	ret i32 %a3
9}
10
11define fastcc i32 @tailcaller(i32 %in1, i32 %in2) {
12entry:
13	%tmp11 = tail call fastcc i32 @tailcallee( i32 %in1, i32 %in2, i32 %in1, i32 %in2 )		; <i32> [#uses=1]
14	ret i32 %tmp11
15; CHECK: jmp tailcallee
16}
17