Lines Matching refs:ShAmt
745 unsigned ShAmt = MaxSA->getZExtValue(); in SimplifyMultipleUseDemandedBits() local
749 if (NumSignBits > ShAmt && (NumSignBits - ShAmt) >= (UpperDemandedBits)) in SimplifyMultipleUseDemandedBits()
1443 unsigned ShAmt = SA->getZExtValue(); in SimplifyDemandedBits() local
1444 if (ShAmt == 0) in SimplifyDemandedBits()
1452 if (!DemandedBits.intersects(APInt::getLowBitsSet(BitWidth, ShAmt))) { in SimplifyDemandedBits()
1457 int Diff = ShAmt - C1; in SimplifyDemandedBits()
1476 if (ShAmt < InnerBits && DemandedBits.getActiveBits() <= InnerBits && in SimplifyDemandedBits()
1479 if (!APInt(BitWidth, ShAmt).isIntN(ShTy.getSizeInBits())) in SimplifyDemandedBits()
1483 TLO.DAG.getConstant(ShAmt, dl, ShTy)); in SimplifyDemandedBits()
1499 if (InnerShAmt < ShAmt && InnerShAmt < InnerBits && in SimplifyDemandedBits()
1501 (InnerBits - InnerShAmt + ShAmt) && in SimplifyDemandedBits()
1502 DemandedBits.countTrailingZeros() >= ShAmt) { in SimplifyDemandedBits()
1504 TLO.DAG.getConstant(ShAmt - InnerShAmt, dl, ShiftVT); in SimplifyDemandedBits()
1514 APInt InDemandedMask = DemandedBits.lshr(ShAmt); in SimplifyDemandedBits()
1519 Known.Zero <<= ShAmt; in SimplifyDemandedBits()
1520 Known.One <<= ShAmt; in SimplifyDemandedBits()
1522 Known.Zero.setLowBits(ShAmt); in SimplifyDemandedBits()
1526 if ((ShAmt < DemandedBits.getActiveBits()) && in SimplifyDemandedBits()
1535 unsigned ShAmt = MaxSA->getZExtValue(); in SimplifyDemandedBits() local
1539 if (NumSignBits > ShAmt && (NumSignBits - ShAmt) >= (UpperDemandedBits)) in SimplifyDemandedBits()
1551 unsigned ShAmt = SA->getZExtValue(); in SimplifyDemandedBits() local
1552 if (ShAmt == 0) in SimplifyDemandedBits()
1560 if (!DemandedBits.intersects(APInt::getHighBitsSet(BitWidth, ShAmt))) { in SimplifyDemandedBits()
1565 int Diff = ShAmt - C1; in SimplifyDemandedBits()
1577 APInt InDemandedMask = (DemandedBits << ShAmt); in SimplifyDemandedBits()
1582 InDemandedMask.setLowBits(ShAmt); in SimplifyDemandedBits()
1589 Known.Zero.lshrInPlace(ShAmt); in SimplifyDemandedBits()
1590 Known.One.lshrInPlace(ShAmt); in SimplifyDemandedBits()
1592 Known.Zero.setHighBits(ShAmt); in SimplifyDemandedBits()
1617 unsigned ShAmt = SA->getZExtValue(); in SimplifyDemandedBits() local
1618 if (ShAmt == 0) in SimplifyDemandedBits()
1621 APInt InDemandedMask = (DemandedBits << ShAmt); in SimplifyDemandedBits()
1626 InDemandedMask.setLowBits(ShAmt); in SimplifyDemandedBits()
1630 if (DemandedBits.countLeadingZeros() < ShAmt) in SimplifyDemandedBits()
1637 Known.Zero.lshrInPlace(ShAmt); in SimplifyDemandedBits()
1638 Known.One.lshrInPlace(ShAmt); in SimplifyDemandedBits()
1642 if (Known.Zero[BitWidth - ShAmt - 1] || in SimplifyDemandedBits()
1643 DemandedBits.countLeadingZeros() >= ShAmt) { in SimplifyDemandedBits()
1657 if (Known.One[BitWidth - ShAmt - 1]) in SimplifyDemandedBits()
1659 Known.One.setHighBits(ShAmt); in SimplifyDemandedBits()
1999 SDValue ShAmt = Src.getOperand(1); in SimplifyDemandedBits() local
2000 auto *ShAmtC = dyn_cast<ConstantSDNode>(ShAmt); in SimplifyDemandedBits()
2014 ShAmt = TLO.DAG.getConstant(ShVal, dl, getShiftAmountTy(VT, DL)); in SimplifyDemandedBits()
2018 Op, TLO.DAG.getNode(ISD::SRL, dl, VT, NewTrunc, ShAmt)); in SimplifyDemandedBits()
2105 SDValue ShAmt = TLO.DAG.getConstant(ShVal, dl, VT); in SimplifyDemandedBits() local
2107 TLO.DAG.getNode(ISD::SHL, dl, VT, Sign, ShAmt)); in SimplifyDemandedBits()
3501 const APInt &ShAmt = N0.getConstantOperandAPInt(1); in SimplifySetCC() local
3503 ShAmt == Log2_32(N0.getValueSizeInBits())) { in SimplifySetCC()
6274 SDValue ShAmt, InvShAmt; in expandFunnelShift() local
6280 ShAmt = DAG.getNode(ISD::UREM, DL, ShVT, Z, BitWidthC); in expandFunnelShift()
6281 InvShAmt = DAG.getNode(ISD::SUB, DL, ShVT, BitWidthC, ShAmt); in expandFunnelShift()
6282 ShX = DAG.getNode(ISD::SHL, DL, VT, X, IsFSHL ? ShAmt : InvShAmt); in expandFunnelShift()
6283 ShY = DAG.getNode(ISD::SRL, DL, VT, Y, IsFSHL ? InvShAmt : ShAmt); in expandFunnelShift()
6290 ShAmt = DAG.getNode(ISD::AND, DL, ShVT, Z, Mask); in expandFunnelShift()
6295 ShAmt = DAG.getNode(ISD::UREM, DL, ShVT, Z, BitWidthC); in expandFunnelShift()
6296 InvShAmt = DAG.getNode(ISD::SUB, DL, ShVT, Mask, ShAmt); in expandFunnelShift()
6301 ShX = DAG.getNode(ISD::SHL, DL, VT, X, ShAmt); in expandFunnelShift()
6307 ShY = DAG.getNode(ISD::SRL, DL, VT, Y, ShAmt); in expandFunnelShift()
6352 SDValue ShAmt = DAG.getNode(ISD::AND, DL, ShVT, Op1, BitWidthMinusOneC); in expandROT() local
6353 ShVal = DAG.getNode(ShOpc, DL, VT, Op0, ShAmt); in expandROT()
6360 SDValue ShAmt = DAG.getNode(ISD::UREM, DL, ShVT, Op1, BitWidthC); in expandROT() local
6361 ShVal = DAG.getNode(ShOpc, DL, VT, Op0, ShAmt); in expandROT()
6362 SDValue HsAmt = DAG.getNode(ISD::SUB, DL, ShVT, BitWidthMinusOneC, ShAmt); in expandROT()