1 ; RUN: opt -S -simplifycfg < %s | FileCheck %s
3 define zeroext i1 @test1(i32 %x) nounwind readnone ssp noredzone {
5 switch i32 %x, label %lor.rhs [
15 %0 = phi i1 [ true, %entry ], [ false, %lor.rhs ], [ true, %entry ], [ true, %entry ]
19 ; CHECK: %x.off = add i32 %x, -1
20 ; CHECK: %switch = icmp ult i32 %x.off, 3
23 define zeroext i1 @test2(i32 %x) nounwind readnone ssp noredzone {
25 switch i32 %x, label %lor.rhs [
34 %0 = phi i1 [ true, %entry ], [ false, %lor.rhs ], [ true, %entry ]
38 ; CHECK: %switch = icmp ult i32 %x, 2