1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=i686-unknown-linux -tailcallopt | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker%struct.s = type {i32, i32, i32, i32, i32, i32, i32, i32, 3*9880d681SAndroid Build Coastguard Worker i32, i32, i32, i32, i32, i32, i32, i32, 4*9880d681SAndroid Build Coastguard Worker i32, i32, i32, i32, i32, i32, i32, i32 } 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Workerdefine fastcc i32 @tailcallee(%struct.s* byval %a) nounwind { 7*9880d681SAndroid Build Coastguard Workerentry: 8*9880d681SAndroid Build Coastguard Worker %tmp2 = getelementptr %struct.s, %struct.s* %a, i32 0, i32 0 9*9880d681SAndroid Build Coastguard Worker %tmp3 = load i32, i32* %tmp2 10*9880d681SAndroid Build Coastguard Worker ret i32 %tmp3 11*9880d681SAndroid Build Coastguard Worker; CHECK: tailcallee 12*9880d681SAndroid Build Coastguard Worker; CHECK: movl 4(%esp), %eax 13*9880d681SAndroid Build Coastguard Worker} 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Workerdefine fastcc i32 @tailcaller(%struct.s* byval %a) nounwind { 16*9880d681SAndroid Build Coastguard Workerentry: 17*9880d681SAndroid Build Coastguard Worker %tmp4 = tail call fastcc i32 @tailcallee(%struct.s* byval %a ) 18*9880d681SAndroid Build Coastguard Worker ret i32 %tmp4 19*9880d681SAndroid Build Coastguard Worker; CHECK: tailcaller 20*9880d681SAndroid Build Coastguard Worker; CHECK: jmp tailcallee 21*9880d681SAndroid Build Coastguard Worker} 22