1 ; RUN: llc -march=mips -mcpu=mips32 -verify-machineinstrs -o /dev/null < %s
2 ; Confirm that MachineInstr branch simplification preserves
3 ; register operand flags, such as the <undef> flag.
7 %tmp = alloca i32, align 4
8 %tmp13 = ptrtoint ptr %tmp to i32
9 %tmp70 = icmp eq i32 undef, -1
10 br i1 %tmp70, label %bb72, label %bb40
12 bb72: ; preds = %bb72, %bb
13 br i1 undef, label %bb40, label %bb72
15 bb40: ; preds = %bb72, %bb
16 %tmp41 = phi i32 [ %tmp13, %bb72 ], [ %tmp13, %bb ]
17 %tmp55 = inttoptr i32 %tmp41 to ptr
18 %tmp58 = insertelement <2 x ptr> undef, ptr %tmp55, i32 1
21 bb59: ; preds = %bb59, %bb40
22 %tmp60 = phi <2 x ptr> [ %tmp61, %bb59 ], [ %tmp58, %bb40 ]
23 %tmp61 = getelementptr i32, <2 x ptr> %tmp60, <2 x i32> <i32 -1, i32 1>
24 %tmp62 = extractelement <2 x ptr> %tmp61, i32 1