mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-29 14:40:39 +00:00
26b0000166
are either unreduced or only test old syntax. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133228 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
675 B
LLVM
19 lines
675 B
LLVM
; RUN: llc < %s -march=x86 -tailcallopt | grep TAILCALL
|
|
; RUN: llc < %s -march=x86 -tailcallopt | grep {movl\[\[:space:\]\]*4(%esp), %eax} | count 1
|
|
%struct.s = type {i32, i32, i32, i32, i32, i32, i32, i32,
|
|
i32, i32, i32, i32, i32, i32, i32, i32,
|
|
i32, i32, i32, i32, i32, i32, i32, i32 }
|
|
|
|
define fastcc i32 @tailcallee(%struct.s* byval %a) nounwind {
|
|
entry:
|
|
%tmp2 = getelementptr %struct.s* %a, i32 0, i32 0
|
|
%tmp3 = load i32* %tmp2
|
|
ret i32 %tmp3
|
|
}
|
|
|
|
define fastcc i32 @tailcaller(%struct.s* byval %a) nounwind {
|
|
entry:
|
|
%tmp4 = tail call fastcc i32 @tailcallee(%struct.s* byval %a )
|
|
ret i32 %tmp4
|
|
}
|