brintos

brintos / llvm-project-archived public Read only

0
0
Text · 645 B · e90b6dd Raw
21 lines · plain
1; RUN: llc < %s -mtriple=i686-unknown-linux -tailcallopt | FileCheck %s2%struct.s = type {i32, i32, i32, i32, i32, i32, i32, i32,3                  i32, i32, i32, i32, i32, i32, i32, i32,4                  i32, i32, i32, i32, i32, i32, i32, i32 }5 6define  fastcc i32 @tailcallee(ptr byval(%struct.s) %a) nounwind {7entry:8        %tmp3 = load i32, ptr %a9        ret i32 %tmp310; CHECK: tailcallee11; CHECK: movl 4(%esp), %eax12}13 14define  fastcc i32 @tailcaller(ptr byval(%struct.s) %a) nounwind {15entry:16        %tmp4 = tail call fastcc i32 @tailcallee(ptr byval(%struct.s) %a )17        ret i32 %tmp418; CHECK: tailcaller19; CHECK: jmp tailcallee20}21