1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=instcombine -S | FileCheck %s
4 define i1 @f(i1 %cond, i32 %x, i32 %x2) {
6 ; CHECK-NEXT: [[C:%.*]] = icmp eq i32 [[X:%.*]], [[X2:%.*]]
7 ; CHECK-NEXT: ret i1 [[C]]
9 %y = select i1 %cond, i32 poison, i32 %x
10 %c = icmp eq i32 %y, %x2