mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
05fdb82535
This reverts commit fd1335e982
.
Use a triple this time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175134 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
690 B
LLVM
22 lines
690 B
LLVM
; RUN: llc < %s -mtriple=i686-unknown-linux -tailcallopt | 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 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
|
|
; CHECK: tailcallee
|
|
; CHECK: movl 4(%esp), %eax
|
|
}
|
|
|
|
define fastcc i32 @tailcaller(%struct.s* byval %a) nounwind {
|
|
entry:
|
|
%tmp4 = tail call fastcc i32 @tailcallee(%struct.s* byval %a )
|
|
ret i32 %tmp4
|
|
; CHECK: tailcaller
|
|
; CHECK: jmp tailcallee
|
|
}
|