1 ; RUN: opt %s -S -simplifycfg | FileCheck %s
4 define void @test(i1 %a) {
6 ; CHECK: br i1 [[IGNORE:%.*]], label %true, label %false
7 switch i1 %a, label %default [i1 1, label %true
20 define void @test2(i2 %a) {
22 switch i2 %a, label %default [i2 0, label %case0
39 ; CHECK-LABEL: default1:
40 ; CHECK-NEXT: unreachable
45 ; This one is a negative test - we know the value of the default,
47 define void @test3(i2 %a) {
49 switch i2 %a, label %default [i2 0, label %case0
63 ; CHECK-LABEL: default:
64 ; CHECK-NEXT: call void @foo
69 ; Negative test - check for possible overflow when computing
70 ; number of possible cases.
71 define void @test4(i128 %a) {
73 switch i128 %a, label %default [i128 0, label %case0
83 ; CHECK-LABEL: default:
84 ; CHECK-NEXT: call void @foo