1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -instcombine -S | FileCheck %s
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]]
10 %tmp237 = and i32 %tmp15, 1
11 %toBool = icmp eq i32 %tmp237, 0