1 ; RUN: llc -march=hexagon -spill-func-threshold-Os=0 -spill-func-threshold=0 < %s | FileCheck %s
3 ; Check that the long-calls feature handles save and restore.
5 ; CHECK: jump ##__restore
7 target triple = "hexagon"
9 ; Function Attrs: nounwind
10 define i32 @f0(i32 %a0, i32 %a1, i32 %a2) #0 {
12 %v0 = tail call i32 @f1(i32 %a0, i32 %a1, i32 %a2) #1
13 %v1 = tail call i32 @f2(i32 %a0, i32 %a1, i32 %a2) #1
17 ; Function Attrs: nounwind
18 declare i32 @f1(...) #1
20 ; Function Attrs: nounwind
21 declare i32 @f2(...) #1
23 attributes #0 = { nounwind "target-features"="+long-calls" }
24 attributes #1 = { nounwind }