1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -instcombine -S | FileCheck %s
5 define i32 @a(i32 %x) nounwind {
8 ; CHECK-NEXT: [[REM:%.*]] = srem i32 [[X:%.*]], 2
9 ; CHECK-NEXT: [[AND:%.*]] = and i32 [[REM]], 2
10 ; CHECK-NEXT: ret i32 [[AND]]
14 %and = and i32 %rem, 2