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.
4 ; This is a test commit.
6 ; CHECK: jump ##__restore
8 target triple = "hexagon"
10 ; Function Attrs: nounwind
11 define i32 @f0(i32 %a0, i32 %a1, i32 %a2) #0 {
13 %v0 = tail call i32 @f1(i32 %a0, i32 %a1, i32 %a2) #1
14 %v1 = tail call i32 @f2(i32 %a0, i32 %a1, i32 %a2) #1
18 ; Function Attrs: nounwind
19 declare i32 @f1(...) #1
21 ; Function Attrs: nounwind
22 declare i32 @f2(...) #1
24 attributes #0 = { nounwind "target-features"="+long-calls" }
25 attributes #1 = { nounwind }