Searched refs:shiftAmt (Results 1 – 5 of 5) sorted by relevance
197 APInt shlSlowCase(unsigned shiftAmt) const;523 unsigned shiftAmt = numBits - hiBitsSet; in getHighBitsSet() local526 return APInt(numBits, ~0ULL << shiftAmt); in getHighBitsSet()527 return getAllOnesValue(numBits).shl(shiftAmt); in getHighBitsSet()760 APInt &operator<<=(unsigned shiftAmt) {761 *this = shl(shiftAmt);840 APInt ashr(unsigned shiftAmt) const;845 APInt lshr(unsigned shiftAmt) const;850 APInt shl(unsigned shiftAmt) const { in shl() argument851 assert(shiftAmt <= BitWidth && "Invalid shift amount"); in shl()[all …]
1014 APInt APInt::ashr(const APInt &shiftAmt) const { in ashr()1015 return ashr((unsigned)shiftAmt.getLimitedValue(BitWidth)); in ashr()1020 APInt APInt::ashr(unsigned shiftAmt) const { in ashr()1021 assert(shiftAmt <= BitWidth && "Invalid shift amount"); in ashr()1023 if (shiftAmt == 0) in ashr()1028 if (shiftAmt == BitWidth) in ashr()1030 return APInt(BitWidth, SignExtend64(VAL, BitWidth) >> shiftAmt); in ashr()1036 if (shiftAmt == BitWidth) { in ashr()1047 unsigned wordShift = shiftAmt % APINT_BITS_PER_WORD; // bits to shift per word in ashr()1048 unsigned offset = shiftAmt / APINT_BITS_PER_WORD; // word offset for shift in ashr()[all …]
470 unsigned shiftAmt = C.getZExtValue(); in lshr() local471 if (shiftAmt >= C.getBitWidth()) in lshr()479 if (A.countTrailingZeros() < shiftAmt) in lshr()482 incErrorMSBs(shiftAmt); in lshr()486 A = A.lshr(shiftAmt); in lshr()
987 APInt lshr(unsigned shiftAmt) const { in lshr() argument989 R.lshrInPlace(shiftAmt); in lshr()1009 APInt shl(unsigned shiftAmt) const { in shl() argument1011 R <<= shiftAmt; in shl()1031 void ashrInPlace(const APInt &shiftAmt);
985 void APInt::ashrInPlace(const APInt &shiftAmt) { in ashrInPlace() argument986 ashrInPlace((unsigned)shiftAmt.getLimitedValue(BitWidth)); in ashrInPlace()1034 void APInt::lshrInPlace(const APInt &shiftAmt) { in lshrInPlace() argument1035 lshrInPlace((unsigned)shiftAmt.getLimitedValue(BitWidth)); in lshrInPlace()1046 APInt &APInt::operator<<=(const APInt &shiftAmt) { in operator <<=() argument1048 *this <<= (unsigned)shiftAmt.getLimitedValue(BitWidth); in operator <<=()