brintos

brintos / llvm-project-archived public Read only

0
0
Text · 663 B · 8602871 Raw
26 lines · plain
1; RUN: llc -mtriple=hexagon -spill-func-threshold-Os=0 -spill-func-threshold=0 < %s | FileCheck %s2 3; Check that the long-calls feature handles save and restore.4; This is a test commit.5; CHECK: call ##__save6; CHECK: jump ##__restore7 8target triple = "hexagon"9 10; Function Attrs: nounwind11define i32 @f0(i32 %a0, i32 %a1, i32 %a2) #0 {12b0:13  %v0 = tail call i32 @f1(i32 %a0, i32 %a1, i32 %a2) #114  %v1 = tail call i32 @f2(i32 %a0, i32 %a1, i32 %a2) #115  ret i32 016}17 18; Function Attrs: nounwind19declare i32 @f1(...) #120 21; Function Attrs: nounwind22declare i32 @f2(...) #123 24attributes #0 = { nounwind "target-features"="+long-calls" }25attributes #1 = { nounwind }26