1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/CodeGen/Hexagon/tailcall_fastcc_ccc.ll
Krzysztof Parzyszek 7674324b11 [Hexagon] Allow tail-call optimization when mixing C and fast calling conv
Patch by Arnold Schwaighofer.

llvm-svn: 279251
2016-08-19 15:02:18 +00:00

23 lines
445 B
LLVM

; RUN: llc -march=hexagon < %s | FileCheck %s
target triple = "hexagon"
declare hidden fastcc void @callee(i32, i32) #0
declare hidden void @callee2(i32, i32) #0
; CHECK: jump callee
define void @caller(i32 %pp) #0 {
entry:
tail call fastcc void @callee(i32 %pp, i32 0)
ret void
}
; CHECK: jump callee2
define void @caller2(i32 %pp) #0 {
entry:
tail call fastcc void @callee2(i32 %pp, i32 0)
ret void
}
attributes #0 = { nounwind }