1 ; RUN: llc -O2 -march=hexagon -hexagon-expand-condsets=0 < %s
3 ; Disable expand-condsets because it will assert on undefined registers.
5 target triple = "hexagon-unknown--elf"
7 %s.0 = type { ptr, ptr }
8 %s.1 = type { ptr, ptr }
10 @g0 = external global %s.0, align 4
12 ; Function Attrs: nounwind
13 define void @f0() #0 {
15 br i1 undef, label %b2, label %b1
21 br i1 undef, label %b26, label %b3
24 br i1 undef, label %b6, label %b4
27 br i1 undef, label %b5, label %b26
30 br i1 undef, label %b7, label %b26
35 b7: ; preds = %b6, %b5
36 br i1 undef, label %b11, label %b8
39 br i1 undef, label %b10, label %b9
48 br i1 undef, label %b25, label %b12
51 br i1 undef, label %b14, label %b13
56 b14: ; preds = %b13, %b12
57 br i1 undef, label %b15, label %b16
62 b16: ; preds = %b15, %b14
63 br i1 undef, label %b18, label %b17
69 %v0 = load ptr, ptr getelementptr inbounds (%s.0, ptr @g0, i32 0, i32 1), align 4
70 %v1 = load ptr, ptr @g0, align 4
71 %v2 = select i1 undef, ptr %v0, ptr %v1
72 br i1 undef, label %b22, label %b19
75 %v3 = load ptr, ptr undef, align 4
76 %v4 = icmp eq ptr %v3, null
77 br i1 %v4, label %b21, label %b20
80 store ptr undef, ptr undef, align 4
83 b21: ; preds = %b20, %b19
86 b22: ; preds = %b21, %b18
87 br i1 undef, label %b24, label %b23
90 store ptr %v2, ptr undef, align 4
93 b24: ; preds = %b23, %b22
99 b26: ; preds = %b5, %b4, %b2
103 attributes #0 = { nounwind "target-cpu"="hexagonv55" }