xref: /aosp_15_r20/external/llvm/test/Transforms/InstCombine/2009-06-16-SRemDemandedBits.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; RUN: opt < %s -instcombine -S | grep srem
2; PR3439
3
4define i32 @a(i32 %x) nounwind {
5entry:
6	%rem = srem i32 %x, 2
7	%and = and i32 %rem, 2
8	ret i32 %and
9}
10