Searched refs:shiftAmt (Results 1 – 3 of 3) sorted by relevance
188 APInt shlSlowCase(unsigned shiftAmt) const;482 unsigned shiftAmt = numBits - hiBitsSet; in getHighBitsSet() local485 return APInt(numBits, ~0ULL << shiftAmt); in getHighBitsSet()486 return getAllOnesValue(numBits).shl(shiftAmt); in getHighBitsSet()648 APInt& operator<<=(unsigned shiftAmt) {649 *this = shl(shiftAmt);723 APInt ashr(unsigned shiftAmt) const;727 APInt lshr(unsigned shiftAmt) const;731 APInt shl(unsigned shiftAmt) const { in shl() argument732 assert(shiftAmt <= BitWidth && "Invalid shift amount"); in shl()[all …]
1032 APInt APInt::ashr(const APInt &shiftAmt) const { in ashr()1033 return ashr((unsigned)shiftAmt.getLimitedValue(BitWidth)); in ashr()1038 APInt APInt::ashr(unsigned shiftAmt) const { in ashr()1039 assert(shiftAmt <= BitWidth && "Invalid shift amount"); in ashr()1041 if (shiftAmt == 0) in ashr()1046 if (shiftAmt == BitWidth) in ashr()1051 (((int64_t(VAL) << SignBit) >> SignBit) >> shiftAmt)); in ashr()1058 if (shiftAmt == BitWidth) { in ashr()1069 unsigned wordShift = shiftAmt % APINT_BITS_PER_WORD; // bits to shift per word in ashr()1070 unsigned offset = shiftAmt / APINT_BITS_PER_WORD; // word offset for shift in ashr()[all …]
1069 uint32_t shiftAmt = C2V.getZExtValue(); in ConstantFoldBinaryInstruction() local1070 if (shiftAmt < C1V.getBitWidth()) in ConstantFoldBinaryInstruction()1071 return ConstantInt::get(CI1->getContext(), C1V.shl(shiftAmt)); in ConstantFoldBinaryInstruction()1076 uint32_t shiftAmt = C2V.getZExtValue(); in ConstantFoldBinaryInstruction() local1077 if (shiftAmt < C1V.getBitWidth()) in ConstantFoldBinaryInstruction()1078 return ConstantInt::get(CI1->getContext(), C1V.lshr(shiftAmt)); in ConstantFoldBinaryInstruction()1083 uint32_t shiftAmt = C2V.getZExtValue(); in ConstantFoldBinaryInstruction() local1084 if (shiftAmt < C1V.getBitWidth()) in ConstantFoldBinaryInstruction()1085 return ConstantInt::get(CI1->getContext(), C1V.ashr(shiftAmt)); in ConstantFoldBinaryInstruction()