Home | History | Annotate | Download | only in InstCombine
      1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
      2 ; RUN: opt < %s -instcombine -S | FileCheck %s
      3 
      4 define i1 @PR2330(i32 %a) {
      5 ; CHECK-LABEL: @PR2330(
      6 ; CHECK-NEXT:    [[TOBOOL:%.*]] = icmp ne i32 %a, 0
      7 ; CHECK-NEXT:    ret i1 [[TOBOOL]]
      8 ;
      9   %tmp15 = shl i32 1, %a
     10   %tmp237 = and i32 %tmp15, 1
     11   %toBool = icmp eq i32 %tmp237, 0
     12   ret i1 %toBool
     13 }
     14 
     15