1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -instcombine -S | FileCheck %s
4 define i1 @PR2539_A(i1 %A) {
5 ; CHECK-LABEL: @PR2539_A(
6 ; CHECK-NEXT: [[C:%.*]] = xor i1 %A, true
7 ; CHECK-NEXT: ret i1 [[C]]
10 %C = icmp slt i32 %B, 1
15 define i1 @PR2539_B(i1 zeroext %b) {
16 ; CHECK-LABEL: @PR2539_B(
17 ; CHECK-NEXT: ret i1 false
19 %cmp = icmp slt i1 %b, true