Lines Matching defs:RHSC
1514 const APFloat *LHSC, *RHSC;
1518 match(RHS1, m_APFloatAllowPoison(RHSC)) &&
1519 LHSC->bitwiseIsEqual(neg(*RHSC))) {
1532 std::swap(LHSC, RHSC);
2268 const APInt *RHSC;
2271 !match(I.getOperand(1), m_APInt(RHSC))))
2293 ? RHSC->byteSwap()
2294 : RHSC->reverseBits()));
3315 const APInt *LHSC = nullptr, *RHSC = nullptr;
3317 match(RHS1, m_APInt(RHSC));
3431 if (!LHSC || !RHSC)
3447 SmallC = RHSC;
3452 BigC = RHSC;
3477 isSignBitCheck(PredR, *RHSC, TrueIfSignedR) &&
4768 const APInt *RHSC;
4769 if (match(Op1, m_APInt(RHSC))) {
4773 if (RHSC->isSignMask() && match(Op0, m_Sub(m_APInt(C), m_Value(X))))
4774 return BinaryOperator::CreateSub(ConstantInt::get(Ty, *C + *RHSC), X);
4777 if (RHSC->isSignMask() && match(Op0, m_Add(m_Value(X), m_APInt(C))))
4778 return BinaryOperator::CreateAdd(X, ConstantInt::get(Ty, *C + *RHSC));
4780 // (X | C) ^ RHSC --> X ^ (C ^ RHSC) iff X & C == 0
4783 return BinaryOperator::CreateXor(X, ConstantInt::get(Ty, *C ^ *RHSC));
4789 if (II && II->hasOneUse() && *RHSC == Ty->getScalarSizeInBits() - 1) {
4801 // If RHSC is inverting the remaining bits of shifted X,
4803 // (X << C) ^ RHSC --> ~X << C
4805 *RHSC == APInt::getAllOnes(Ty->getScalarSizeInBits()).shl(*C)) {
4809 // (X >>u C) ^ RHSC --> ~X >>u C
4811 *RHSC == APInt::getAllOnes(Ty->getScalarSizeInBits()).lshr(*C)) {