1 ; RUN: llvm-as < %s | llc -march=x86 -tailcallopt | grep TAILCALL
2 ; check for the 2 byval moves
3 ; RUN: llvm-as < %s | llc -march=x86 -tailcallopt | grep movl | grep ecx | grep eax | wc -l | grep 1
4 %struct.s = type {i32, i32, i32, i32, i32, i32, i32, i32,
5 i32, i32, i32, i32, i32, i32, i32, i32,
6 i32, i32, i32, i32, i32, i32, i32, i32 }
8 define fastcc i32 @tailcallee(%struct.s* byval %a) {
10 %tmp2 = getelementptr %struct.s* %a, i32 0, i32 0
11 %tmp3 = load i32* %tmp2
15 define fastcc i32 @tailcaller(%struct.s* byval %a) {
17 %tmp4 = tail call fastcc i32 @tailcallee(%struct.s* %a byval)