Home
last modified time | relevance | path

Searched refs:shiftAmt (Results 1 – 9 of 9) sorted by relevance

/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DAPInt.h187 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/llvm/include/llvm/ADT/
DAPInt.h193 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-subzero/include/llvm/ADT/
DAPInt.h197 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/
DAPInt.cpp1115 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/swiftshader/third_party/llvm-subzero/lib/Support/
DAPInt.cpp1029 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/llvm/lib/Support/
DAPInt.cpp1051 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/lib/VMCore/
DConstantFold.cpp1210 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/v8/src/s390/
Dassembler-s390.cc1383 const Operand& endBit, const Operand& shiftAmt, in risbg() argument
1388 shiftAmt); in risbg()
1390 rie_f_form(RISBG, dst, src, startBit, endBit, shiftAmt); in risbg()
1395 const Operand& endBit, const Operand& shiftAmt, in risbgn() argument
1400 shiftAmt); in risbgn()
1402 rie_f_form(RISBGN, dst, src, startBit, endBit, shiftAmt); in risbgn()
Dassembler-s390.h1115 const Operand& endBit, const Operand& shiftAmt,
1118 const Operand& endBit, const Operand& shiftAmt,