1 ; RUN: llc -march=hexagon -enable-pipeliner < %s
4 ; Check that the dependences are order correctly, and the list can be
5 ; updated when the instruction to insert has a def and use conflict.
7 ; Function Attrs: nounwind
8 define fastcc void @f0() #0 {
10 br i1 undef, label %b7, label %b1
13 br i1 undef, label %b2, label %b4
16 %v0 = load i16, ptr undef, align 2
22 b4: ; preds = %b3, %b1
23 %v1 = phi i16 [ %v11, %b3 ], [ 0, %b1 ]
24 br i1 false, label %b7, label %b6
26 b5: ; preds = %b5, %b2
27 %v2 = phi i16 [ %v3, %b5 ], [ undef, %b2 ]
28 %v3 = phi i16 [ 0, %b5 ], [ %v0, %b2 ]
29 %v4 = phi i16 [ %v2, %b5 ], [ undef, %b2 ]
30 %v5 = phi i16 [ %v11, %b5 ], [ 0, %b2 ]
31 %v6 = phi i32 [ %v12, %b5 ], [ undef, %b2 ]
37 %v12 = add nsw i32 %v6, -32
38 %v13 = icmp sgt i32 %v12, 31
39 br i1 %v13, label %b5, label %b3
44 b7: ; preds = %b6, %b4, %b0
48 attributes #0 = { nounwind "target-cpu"="hexagonv55" }