1 ; RUN: llc -march=hexagon -O2 -hexagon-shrink-frame=0 -hexagon-cext-threshold=1 < %s | FileCheck %s
3 target triple = "hexagon"
5 %s.0 = type <{ ptr, ptr, i16, i8, i8, i8 }>
6 %s.1 = type { %s.2, [14 x ptr], [14 x i8], [6 x i8], [4 x %s.4], [4 x %s.8], [4 x %s.8], [14 x %s.10], ptr, ptr }
7 %s.2 = type { [4 x %s.3], i16, i32, i32, i32, i32 }
8 %s.3 = type { i8, i8, i8, i8 }
9 %s.4 = type { i8, i32, [16 x %s.5], %s.6, i8, [7 x i8] }
10 %s.5 = type { ptr, ptr, i32 }
11 %s.6 = type { ptr, i32, ptr, i32, i32, i32, ptr, ptr, i32, i8, ptr, i32, i32, ptr, ptr, i32, i8, ptr, i32, ptr, i32, i32, i32, ptr, i32, i8 }
12 %s.7 = type { i32, i16, i16 }
14 %s.9 = type { ptr, i32, i32 }
15 %s.10 = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
17 @g0 = internal constant %s.0 <{ ptr @g1, ptr @g2, i16 1694, i8 4, i8 0, i8 0 }>, section ".rodata.diag", align 1
18 @g1 = private unnamed_addr constant [125 x i8] c"............................................................................................................................\00", align 8
19 @g2 = private unnamed_addr constant [82 x i8] c"Assertion (..............................................................) failed\00", align 8
20 @g3 = external global %s.1
22 define void @f0(ptr %a0, i8 zeroext %a1) {
23 ; look for a dealloc_return in a packet with nothing else.
25 ; CHECK: memw(r1+#0) = r0
28 ; CHECK-NEXT: dealloc_return
32 %v1 = icmp ugt i8 %v0, 1
33 br i1 %v1, label %b1, label %b2, !prof !0
36 tail call void @f1(ptr @g0) #1
40 %v2 = icmp eq i8 %a1, 2
41 br i1 %v2, label %b3, label %b4
44 store ptr %a0, ptr getelementptr inbounds (%s.1, ptr @g3, i32 0, i32 8), align 4, !tbaa !1
48 store ptr %a0, ptr getelementptr inbounds (%s.1, ptr @g3, i32 0, i32 9), align 4, !tbaa !1
51 b5: ; preds = %b4, %b3
55 ; Function Attrs: noreturn
56 declare void @f1(ptr) #1
58 attributes #0 = { nounwind "target-cpu"="hexagonv60" }
59 attributes #1 = { noreturn }
61 !0 = !{!"branch_weights", i32 4, i32 64}
63 !2 = !{!"any pointer", !3}
64 !3 = !{!"omnipotent char", !4}
65 !4 = !{!"Simple C/C++ TBAA"}