Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: llc < %s -march=ppc32
      2 ; <rdar://problem/6020042>
      3 
      4 define i32 @bork() nounwind  {
      5 entry:
      6 	br i1 true, label %bb1, label %bb3
      7 
      8 bb1:
      9 	%tmp1 = load i8* null, align 1
     10 	%tmp2 = icmp eq i8 %tmp1, 0
     11 	br label %bb2
     12 
     13 bb2:
     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 
     23 bb3:
     24 	ret i32 -1
     25 }
     26