1 ; RUN: llc -march=hexagon < %s | FileCheck %s
4 ; This test is failing after post-ra machine sinking.
6 ; Check that no epilogue is inserted after a noreturn call.
9 ; CHECK: allocframe(r29,#0):raw
10 ; CHECK-NOT: deallocframe
12 target triple = "hexagon"
14 %s.0 = type <{ i16, i8, i8, i8 }>
16 @g0 = internal constant %s.0 <{ i16 1, i8 2, i8 3, i8 4 }>, align 4
18 ; Function Attrs: noreturn
19 declare void @f0(%s.0*, i32) #0
21 define i64 @f1(i32 %a0, i32 %a1) {
23 %v0 = icmp ugt i32 %a0, 3
24 br i1 %v0, label %b1, label %b2
27 call void @f0(%s.0* nonnull @g0, i32 %a0) #0
32 %v2 = zext i32 %v1 to i64
36 attributes #0 = { noreturn }