1 ; RUN: opt < %s -simplifycfg -S | FileCheck %s
3 define void @test1(i1 %C, i1* %BP) {
8 br i1 %C, label %T, label %F
16 define void @test2() {
19 ; CHECK-NEXT: call void @test2()
20 ; CHECK-NEXT: ret void
23 to label %N unwind label %U
30 define i32 @test3(i32 %v) {
33 ; CHECK-NEXT: [[CMP:%[A-Za-z0-9]+]] = icmp eq i32 %v, 2
34 ; CHECK-NEXT: select i1 [[CMP]], i32 2, i32 1
37 switch i32 %v, label %default [
50 define i32 @test4(i32 %v) {
52 ; CHECK-NEXT: switch i32 %v, label %T [
53 ; CHECK-NEXT: i32 3, label %V
54 ; CHECK-NEXT: i32 2, label %U
62 switch i32 %v, label %default [