1 ; RUN: llc -march=hexagon < %s
4 target triple = "hexagon"
6 ; Function Attrs: nounwind optsize readonly
7 define void @f0() #0 align 2 {
9 %v0 = load i32, i32* undef, align 8
10 %v1 = zext i32 %v0 to i64
11 %v2 = add nuw nsw i64 %v1, 63
13 %v4 = trunc i64 %v3 to i32
14 br i1 undef, label %b3, label %b1
17 %v5 = add nsw i32 %v4, -1
20 b2: ; preds = %b2, %b1
21 %v6 = phi i32 [ %v5, %b1 ], [ %v7, %b2 ]
23 %v8 = icmp sgt i32 %v7, -1
24 br i1 %v8, label %b2, label %b3
26 b3: ; preds = %b2, %b0
30 attributes #0 = { nounwind optsize readonly }