Lines Matching defs:ashr
383 return getNonEmpty(APInt::getSignedMinValue(BitWidth).ashr(ShAmtUMax),
384 APInt::getSignedMaxValue(BitWidth).ashr(ShAmtUMax) + 1);
959 return ashr(Other);
1799 ConstantRange::ashr(const ConstantRange &Other) const {
1804 // 'PosMax' is the upper bound of the result of the ashr
1805 // operation, when Upper of the LHS of ashr is a non-negative.
1806 // number. Since ashr of a non-negative number will result in a
1809 APInt PosMax = getSignedMax().ashr(Other.getUnsignedMin()) + 1;
1811 // 'PosMin' is the lower bound of the result of the ashr
1813 // Since ashr of a non-negative number will result in a smaller
1816 APInt PosMin = getSignedMin().ashr(Other.getUnsignedMax());
1818 // 'NegMax' is the upper bound of the result of the ashr
1819 // operation, when Upper of the LHS of ashr is a negative number.
1820 // Since 'ashr' of a negative number will result in a bigger
1823 APInt NegMax = getSignedMax().ashr(Other.getUnsignedMax()) + 1;
1825 // 'NegMin' is the lower bound of the result of the ashr
1826 // operation, when Lower of the LHS of ashr is a negative number.
1827 // Since 'ashr' of a negative number will result in a bigger
1830 APInt NegMin = getSignedMin().ashr(Other.getUnsignedMin());