1; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu.5 -mcpu=g5
2; rdar://7422268
3
4%struct..0EdgeT = type { i32, i32, float, float, i32, i32, i32, float, i32, i32 }
5
6define void @smooth_color_z_triangle(i32 %v0, i32 %v1, i32 %v2, i32 %pv) nounwind {
7entry:
8  br i1 undef, label %return, label %bb14
9
10bb14:                                             ; preds = %entry
11  br i1 undef, label %bb15, label %return
12
13bb15:                                             ; preds = %bb14
14  br i1 undef, label %bb16, label %bb17
15
16bb16:                                             ; preds = %bb15
17  br label %bb17
18
19bb17:                                             ; preds = %bb16, %bb15
20  %0 = fcmp olt float undef, 0.000000e+00         ; <i1> [#uses=2]
21  %eTop.eMaj = select i1 %0, %struct..0EdgeT* undef, %struct..0EdgeT* null ; <%struct..0EdgeT*> [#uses=1]
22  br label %bb69
23
24bb24:                                             ; preds = %bb69
25  br i1 undef, label %bb25, label %bb28
26
27bb25:                                             ; preds = %bb24
28  br label %bb33
29
30bb28:                                             ; preds = %bb24
31  br i1 undef, label %return, label %bb32
32
33bb32:                                             ; preds = %bb28
34  br i1 %0, label %bb38, label %bb33
35
36bb33:                                             ; preds = %bb32, %bb25
37  br i1 undef, label %bb34, label %bb38
38
39bb34:                                             ; preds = %bb33
40  br label %bb38
41
42bb38:                                             ; preds = %bb34, %bb33, %bb32
43  %eRight.08 = phi %struct..0EdgeT* [ %eTop.eMaj, %bb32 ], [ undef, %bb34 ], [ undef, %bb33 ] ; <%struct..0EdgeT*> [#uses=0]
44  %fdgOuter.0 = phi i32 [ %fdgOuter.1, %bb32 ], [ undef, %bb34 ], [ %fdgOuter.1, %bb33 ] ; <i32> [#uses=1]
45  %fz.3 = phi i32 [ %fz.2, %bb32 ], [ 2147483647, %bb34 ], [ %fz.2, %bb33 ] ; <i32> [#uses=1]
46  %1 = add i32 undef, 1                           ; <i32> [#uses=0]
47  br label %bb69
48
49bb69:                                             ; preds = %bb38, %bb17
50  %fdgOuter.1 = phi i32 [ undef, %bb17 ], [ %fdgOuter.0, %bb38 ] ; <i32> [#uses=2]
51  %fz.2 = phi i32 [ undef, %bb17 ], [ %fz.3, %bb38 ] ; <i32> [#uses=2]
52  br i1 undef, label %bb24, label %return
53
54return:                                           ; preds = %bb69, %bb28, %bb14, %entry
55  ret void
56}
57