llvm-for-llvmta/test/CodeGen/Hexagon/simpletailcall.ll

17 lines
349 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: llc -march=hexagon < %s | FileCheck %s
; CHECK: f0
; CHECK-NOT: allocframe
; CHECK-NOT: memd(r29
; CHECK: jump f1
define void @f0(i32 %a0) #0 {
b0:
%v0 = add nsw i32 %a0, 3
%v1 = tail call i32 bitcast (i32 (...)* @f1 to i32 (i32)*)(i32 %v0) #0
ret void
}
declare i32 @f1(...) #0
attributes #0 = { nounwind "target-cpu"="hexagonv5" }