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