1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -passes=ipsccp < %s | FileCheck %s
6 declare void @patatino()
8 define void @test1(i32 %t) {
10 ; CHECK-NEXT: [[CHOICE:%.*]] = icmp eq i32 undef, -1
11 ; CHECK-NEXT: switch i1 [[CHOICE]], label [[FIRST:%.*]] [
12 ; CHECK-NEXT: i1 false, label [[SECOND:%.*]]
13 ; CHECK-NEXT: i1 true, label [[THIRD:%.*]]
16 ; CHECK-NEXT: call void @foo()
17 ; CHECK-NEXT: ret void
19 ; CHECK-NEXT: call void @goo()
20 ; CHECK-NEXT: ret void
22 ; CHECK-NEXT: call void @patatino()
23 ; CHECK-NEXT: ret void
25 %choice = icmp eq i32 undef, -1
26 switch i1 %choice, label %first [i1 0, label %second