1; RUN: llc < %s -march=ppc32 2; <rdar://problem/6020042> 3 4define i32 @bork() nounwind { 5entry: 6 br i1 true, label %bb1, label %bb3 7 8bb1: 9 %tmp1 = load i8, i8* null, align 1 10 %tmp2 = icmp eq i8 %tmp1, 0 11 br label %bb2 12 13bb2: 14 %val1 = phi i32 [ 0, %bb1 ], [ %val2, %bb2 ] 15 %val2 = select i1 %tmp2, i32 -1, i32 %val1 16 switch i32 %val2, label %bb2 [ 17 i32 -1, label %bb3 18 i32 0, label %bb1 19 i32 1, label %bb3 20 i32 2, label %bb1 21 ] 22 23bb3: 24 ret i32 -1 25} 26