1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=instcombine -S | FileCheck %s
6 define i1 @test(i32 %c.3.i, i32 %d.292.2.i) {
8 ; CHECK-NEXT: [[SEL_TMP80:%.*]] = icmp sle i32 [[C_3_I:%.*]], [[D_292_2_I:%.*]]
9 ; CHECK-NEXT: ret i1 [[SEL_TMP80]]
11 %tmp266.i = icmp slt i32 %c.3.i, %d.292.2.i
12 %tmp276.i = icmp eq i32 %c.3.i, %d.292.2.i
13 %sel_tmp80 = or i1 %tmp266.i, %tmp276.i
17 define i1 @test_logical(i32 %c.3.i, i32 %d.292.2.i) {
18 ; CHECK-LABEL: @test_logical(
19 ; CHECK-NEXT: [[SEL_TMP80:%.*]] = icmp sle i32 [[C_3_I:%.*]], [[D_292_2_I:%.*]]
20 ; CHECK-NEXT: ret i1 [[SEL_TMP80]]
22 %tmp266.i = icmp slt i32 %c.3.i, %d.292.2.i
23 %tmp276.i = icmp eq i32 %c.3.i, %d.292.2.i
24 %sel_tmp80 = select i1 %tmp266.i, i1 true, i1 %tmp276.i