/external/llvm/include/llvm/ADT/ |
D | APInt.h | 193 APInt shlSlowCase(unsigned shiftAmt) const; 519 unsigned shiftAmt = numBits - hiBitsSet; in getHighBitsSet() local 522 return APInt(numBits, ~0ULL << shiftAmt); in getHighBitsSet() 523 return getAllOnesValue(numBits).shl(shiftAmt); in getHighBitsSet() 766 APInt &operator<<=(unsigned shiftAmt) { 767 *this = shl(shiftAmt); 864 APInt LLVM_ATTRIBUTE_UNUSED_RESULT ashr(unsigned shiftAmt) const; 869 APInt LLVM_ATTRIBUTE_UNUSED_RESULT lshr(unsigned shiftAmt) const; 874 APInt LLVM_ATTRIBUTE_UNUSED_RESULT shl(unsigned shiftAmt) const { in shl() argument 875 assert(shiftAmt <= BitWidth && "Invalid shift amount"); in shl() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | APInt.h | 187 APInt shlSlowCase(unsigned shiftAmt) const; 481 unsigned shiftAmt = numBits - hiBitsSet; in getHighBitsSet() local 484 return APInt(numBits, ~0ULL << shiftAmt); in getHighBitsSet() 485 return getAllOnesValue(numBits).shl(shiftAmt); in getHighBitsSet() 641 APInt& operator<<=(unsigned shiftAmt) { 642 *this = shl(shiftAmt); 716 APInt ashr(unsigned shiftAmt) const; 720 APInt lshr(unsigned shiftAmt) const; 724 APInt shl(unsigned shiftAmt) const { in shl() argument 725 assert(shiftAmt <= BitWidth && "Invalid shift amount"); in shl() [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | APInt.h | 197 APInt shlSlowCase(unsigned shiftAmt) const; 523 unsigned shiftAmt = numBits - hiBitsSet; in getHighBitsSet() local 526 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() argument 851 assert(shiftAmt <= BitWidth && "Invalid shift amount"); in shl() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | APInt.cpp | 1115 APInt APInt::ashr(const APInt &shiftAmt) const { in ashr() 1116 return ashr((unsigned)shiftAmt.getLimitedValue(BitWidth)); in ashr() 1121 APInt APInt::ashr(unsigned shiftAmt) const { in ashr() 1122 assert(shiftAmt <= BitWidth && "Invalid shift amount"); in ashr() 1124 if (shiftAmt == 0) in ashr() 1129 if (shiftAmt == BitWidth) in ashr() 1134 (((int64_t(VAL) << SignBit) >> SignBit) >> shiftAmt)); in ashr() 1141 if (shiftAmt == BitWidth) { in ashr() 1152 unsigned wordShift = shiftAmt % APINT_BITS_PER_WORD; // bits to shift per word in ashr() 1153 unsigned offset = shiftAmt / APINT_BITS_PER_WORD; // word offset for shift in ashr() [all …]
|
/external/llvm/lib/Support/ |
D | APInt.cpp | 1051 APInt APInt::ashr(const APInt &shiftAmt) const { in ashr() 1052 return ashr((unsigned)shiftAmt.getLimitedValue(BitWidth)); in ashr() 1057 APInt APInt::ashr(unsigned shiftAmt) const { in ashr() 1058 assert(shiftAmt <= BitWidth && "Invalid shift amount"); in ashr() 1060 if (shiftAmt == 0) in ashr() 1065 if (shiftAmt == BitWidth) in ashr() 1070 (((int64_t(VAL) << SignBit) >> SignBit) >> shiftAmt)); in ashr() 1077 if (shiftAmt == BitWidth) { in ashr() 1088 unsigned wordShift = shiftAmt % APINT_BITS_PER_WORD; // bits to shift per word in ashr() 1089 unsigned offset = shiftAmt / APINT_BITS_PER_WORD; // word offset for shift in ashr() [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | APInt.cpp | 1029 APInt APInt::ashr(const APInt &shiftAmt) const { in ashr() 1030 return ashr((unsigned)shiftAmt.getLimitedValue(BitWidth)); in ashr() 1035 APInt APInt::ashr(unsigned shiftAmt) const { in ashr() 1036 assert(shiftAmt <= BitWidth && "Invalid shift amount"); in ashr() 1038 if (shiftAmt == 0) in ashr() 1043 if (shiftAmt == BitWidth) in ashr() 1045 return APInt(BitWidth, SignExtend64(VAL, BitWidth) >> shiftAmt); in ashr() 1051 if (shiftAmt == BitWidth) { in ashr() 1062 unsigned wordShift = shiftAmt % APINT_BITS_PER_WORD; // bits to shift per word in ashr() 1063 unsigned offset = shiftAmt / APINT_BITS_PER_WORD; // word offset for shift in ashr() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/ |
D | APInt.h | 970 APInt lshr(unsigned shiftAmt) const { in lshr() argument 972 R.lshrInPlace(shiftAmt); in lshr() 992 APInt shl(unsigned shiftAmt) const { in shl() argument 994 R <<= shiftAmt; in shl() 1014 void ashrInPlace(const APInt &shiftAmt);
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | ConstantFold.cpp | 1210 uint32_t shiftAmt = C2V.getZExtValue(); in ConstantFoldBinaryInstruction() local 1211 if (shiftAmt < C1V.getBitWidth()) in ConstantFoldBinaryInstruction() 1212 return ConstantInt::get(CI1->getContext(), C1V.shl(shiftAmt)); in ConstantFoldBinaryInstruction() 1217 uint32_t shiftAmt = C2V.getZExtValue(); in ConstantFoldBinaryInstruction() local 1218 if (shiftAmt < C1V.getBitWidth()) in ConstantFoldBinaryInstruction() 1219 return ConstantInt::get(CI1->getContext(), C1V.lshr(shiftAmt)); in ConstantFoldBinaryInstruction() 1224 uint32_t shiftAmt = C2V.getZExtValue(); in ConstantFoldBinaryInstruction() local 1225 if (shiftAmt < C1V.getBitWidth()) in ConstantFoldBinaryInstruction() 1226 return ConstantInt::get(CI1->getContext(), C1V.ashr(shiftAmt)); in ConstantFoldBinaryInstruction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | APInt.cpp | 912 void APInt::ashrInPlace(const APInt &shiftAmt) { in ashrInPlace() argument 913 ashrInPlace((unsigned)shiftAmt.getLimitedValue(BitWidth)); in ashrInPlace() 961 void APInt::lshrInPlace(const APInt &shiftAmt) { in lshrInPlace() argument 962 lshrInPlace((unsigned)shiftAmt.getLimitedValue(BitWidth)); in lshrInPlace() 973 APInt &APInt::operator<<=(const APInt &shiftAmt) { in operator <<=() argument 975 *this <<= (unsigned)shiftAmt.getLimitedValue(BitWidth); in operator <<=()
|
/external/v8/src/s390/ |
D | assembler-s390.h | 1231 const Operand& endBit, const Operand& shiftAmt) { \ 1234 DCHECK(is_uint8(shiftAmt.immediate())); \ 1236 endBit.immediate(), shiftAmt.immediate()); \
|
D | macro-assembler-s390.cc | 362 const Operand& shiftAmt, bool zeroBits) { in RotateInsertSelectBits() argument 366 Operand(static_cast<intptr_t>(endBit.immediate() | 0x80)), shiftAmt); in RotateInsertSelectBits() 368 risbg(dst, src, startBit, endBit, shiftAmt); in RotateInsertSelectBits()
|
D | macro-assembler-s390.h | 222 const Operand& shiftAmt, bool zeroBits);
|