mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 18:31:04 +00:00
38ada868f2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43978 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
433 B
LLVM
16 lines
433 B
LLVM
; RUN: llvm-as < %s | llc -march=x86 -tailcallopt | grep TAILCALL
|
|
%struct.s = type { i32, i32, i32 }
|
|
|
|
define fastcc i32 @tailcallee(%struct.s* byval %a) {
|
|
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) {
|
|
entry:
|
|
%tmp4 = tail call fastcc i32 @tailcallee(%struct.s* %a byval)
|
|
ret i32 %tmp4
|
|
}
|