Files
clang-p2996/llvm/test/CodeGen/X86/tailccbyval.ll
Matt Arsenault 06c192d454 OpaquePtr: Bulk update tests to use typed byval
Upgrade of the IR text tests should be the only thing blocking making
typed byval mandatory. Partially done through regex and partially
manual.
2020-11-20 14:00:46 -05:00

22 lines
726 B
LLVM

; RUN: llc < %s -mtriple=i686-unknown-linux | FileCheck %s
%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 tailcc i32 @tailcallee(%struct.s* byval(%struct.s) %a) nounwind {
entry:
%tmp2 = getelementptr %struct.s, %struct.s* %a, i32 0, i32 0
%tmp3 = load i32, i32* %tmp2
ret i32 %tmp3
; CHECK: tailcallee
; CHECK: movl 4(%esp), %eax
}
define tailcc i32 @tailcaller(%struct.s* byval(%struct.s) %a) nounwind {
entry:
%tmp4 = tail call tailcc i32 @tailcallee(%struct.s* byval(%struct.s) %a )
ret i32 %tmp4
; CHECK: tailcaller
; CHECK: jmp tailcallee
}