Lines Matching refs:Bits
1408 inline int Bits(int hi, int lo) const { in Bits() function
1415 Bits(kBaseOpcodeShift + kBaseOpcodeBits - 1, kBaseOpcodeShift)); in BaseOpcodeValue()
1481 return this->Bits(kRs1Shift + kRs1Bits - 1, kRs1Shift); in Rs1Value()
1491 return this->Bits(kRs2Shift + kRs2Bits - 1, kRs2Shift); in Rs2Value()
1496 return this->Bits(kRs3Shift + kRs3Bits - 1, kRs3Shift); in Rs3Value()
1503 return this->Bits(kVs1Shift + kVs1Bits - 1, kVs1Shift); in Vs1Value()
1510 return this->Bits(kVs2Shift + kVs2Bits - 1, kVs2Shift); in Vs2Value()
1517 return this->Bits(kVdShift + kVdBits - 1, kVdShift); in VdValue()
1528 return this->Bits(kRdShift + kRdBits - 1, kRdShift); in RdValue()
1533 return this->Bits(kRvcRdShift + kRvcRdBits - 1, kRvcRdShift); in RvcRdValue()
1540 return this->Bits(kRvcRs2Shift + kRvcRs2Bits - 1, kRvcRs2Shift); in RvcRs2Value()
1545 return 0b1000 + this->Bits(kRvcRs1sShift + kRvcRs1sBits - 1, kRvcRs1sShift); in RvcRs1sValue()
1550 return 0b1000 + this->Bits(kRvcRs2sShift + kRvcRs2sBits - 1, kRvcRs2sShift); in RvcRs2sValue()
1555 return this->Bits(kFunct7Shift + kFunct7Bits - 1, kFunct7Shift); in Funct7Value()
1563 return this->Bits(kFunct3Shift + kFunct3Bits - 1, kFunct3Shift); in Funct3Value()
1569 return this->Bits(kFunct5Shift + kFunct5Bits - 1, kFunct5Shift); in Funct5Value()
1574 return this->Bits(kRvcFunct6Shift + kRvcFunct6Bits - 1, kRvcFunct6Shift); in RvcFunct6Value()
1579 return this->Bits(kRvcFunct4Shift + kRvcFunct4Bits - 1, kRvcFunct4Shift); in RvcFunct4Value()
1584 return this->Bits(kRvcFunct3Shift + kRvcFunct3Bits - 1, kRvcFunct3Shift); in RvcFunct3Value()
1589 return this->Bits(kRvcFunct2Shift + kRvcFunct2Bits - 1, kRvcFunct2Shift); in RvcFunct2Value()
1594 return this->Bits(kRvcFunct2BShift + kRvcFunct2Bits - 1, kRvcFunct2BShift); in RvcFunct2BValue()
1600 return (this->Bits(kCsrShift + kCsrBits - 1, kCsrShift)); in CsrValue()
1607 return this->Bits(kFunct3Shift + kFunct3Bits - 1, kFunct3Shift); in RoundMode()
1614 return this->Bits(kPredOrderShift + kMemOrderBits - 1, kPredOrderShift); in MemoryOrder()
1616 return this->Bits(kSuccOrderShift + kMemOrderBits - 1, kSuccOrderShift); in MemoryOrder()
1622 int Value = this->Bits(kImm12Shift + kImm12Bits - 1, kImm12Shift); in Imm12Value()
1635 uint32_t Bits = this->InstructionBits(); in BranchOffset() local
1636 int16_t imm13 = ((Bits & 0xf00) >> 7) | ((Bits & 0x7e000000) >> 20) | in BranchOffset()
1637 ((Bits & 0x80) << 4) | ((Bits & 0x80000000) >> 19); in BranchOffset()
1645 uint32_t Bits = this->InstructionBits(); in StoreOffset() local
1646 int16_t imm12 = ((Bits & 0xf80) >> 7) | ((Bits & 0xfe000000) >> 20); in StoreOffset()
1654 int32_t Bits = this->InstructionBits(); in Imm20UValue() local
1655 return Bits >> 12; in Imm20UValue()
1662 uint32_t Bits = this->InstructionBits(); in Imm20JValue() local
1663 int32_t imm20 = ((Bits & 0x7fe00000) >> 20) | ((Bits & 0x100000) >> 9) | in Imm20JValue()
1664 (Bits & 0xff000) | ((Bits & 0x80000000) >> 11); in Imm20JValue()
1682 return this->Bits(kImm12Shift + 5, kImm12Shift); in Shamt()
1691 return this->Bits(kImm12Shift + 4, kImm12Shift); in Shamt32()
1698 uint32_t Bits = this->InstructionBits(); in RvcImm6Value() local
1699 int32_t imm6 = ((Bits & 0x1000) >> 7) | ((Bits & 0x7c) >> 2); in RvcImm6Value()
1707 uint32_t Bits = this->InstructionBits(); in RvcImm6Addi16spValue() local
1708 int32_t imm10 = ((Bits & 0x1000) >> 3) | ((Bits & 0x40) >> 2) | in RvcImm6Addi16spValue()
1709 ((Bits & 0x20) << 1) | ((Bits & 0x18) << 4) | in RvcImm6Addi16spValue()
1710 ((Bits & 0x4) << 3); in RvcImm6Addi16spValue()
1719 uint32_t Bits = this->InstructionBits(); in RvcImm8Addi4spnValue() local
1720 int32_t uimm10 = ((Bits & 0x20) >> 2) | ((Bits & 0x40) >> 4) | in RvcImm8Addi4spnValue()
1721 ((Bits & 0x780) >> 1) | ((Bits & 0x1800) >> 7); in RvcImm8Addi4spnValue()
1738 uint32_t Bits = this->InstructionBits(); in RvcImm6LwspValue() local
1740 ((Bits & 0x1000) >> 7) | ((Bits & 0x70) >> 2) | ((Bits & 0xc) << 4); in RvcImm6LwspValue()
1748 uint32_t Bits = this->InstructionBits(); in RvcImm6LdspValue() local
1750 ((Bits & 0x1000) >> 7) | ((Bits & 0x60) >> 2) | ((Bits & 0x1c) << 4); in RvcImm6LdspValue()
1758 uint32_t Bits = this->InstructionBits(); in RvcImm6SwspValue() local
1759 int32_t imm8 = ((Bits & 0x1e00) >> 7) | ((Bits & 0x180) >> 1); in RvcImm6SwspValue()
1767 uint32_t Bits = this->InstructionBits(); in RvcImm6SdspValue() local
1768 int32_t imm9 = ((Bits & 0x1c00) >> 7) | ((Bits & 0x380) >> 1); in RvcImm6SdspValue()
1776 uint32_t Bits = this->InstructionBits(); in RvcImm5WValue() local
1778 ((Bits & 0x1c00) >> 7) | ((Bits & 0x40) >> 4) | ((Bits & 0x20) << 1); in RvcImm5WValue()
1786 uint32_t Bits = this->InstructionBits(); in RvcImm5DValue() local
1787 int32_t imm8 = ((Bits & 0x1c00) >> 7) | ((Bits & 0x60) << 1); in RvcImm5DValue()
1795 uint32_t Bits = this->InstructionBits(); in RvcImm11CJValue() local
1796 int32_t imm12 = ((Bits & 0x4) << 3) | ((Bits & 0x38) >> 2) | in RvcImm11CJValue()
1797 ((Bits & 0x40) << 1) | ((Bits & 0x80) >> 1) | in RvcImm11CJValue()
1798 ((Bits & 0x100) << 2) | ((Bits & 0x600) >> 1) | in RvcImm11CJValue()
1799 ((Bits & 0x800) >> 7) | ((Bits & 0x1000) >> 1); in RvcImm11CJValue()
1807 uint32_t Bits = this->InstructionBits(); in RvcImm8BValue() local
1808 int32_t imm9 = ((Bits & 0x4) << 3) | ((Bits & 0x18) >> 2) | in RvcImm8BValue()
1809 ((Bits & 0x60) << 1) | ((Bits & 0xc00) >> 7) | in RvcImm8BValue()
1810 ((Bits & 0x1000) >> 4); in RvcImm8BValue()
1854 uint32_t Bits = this->InstructionBits(); in Rvvzimm() local
1855 uint32_t zimm = Bits & kRvvZimmMask; in Rvvzimm()
1861 uint32_t Bits = this->InstructionBits(); in Rvvzimm() local
1862 uint32_t zimm = Bits & kRvvZimmMask; in Rvvzimm()
1871 uint32_t Bits = this->InstructionBits(); in Rvvuimm() local
1872 uint32_t uimm = Bits & kRvvUimmMask; in Rvvuimm()
1892 return this->Bits(kRvvVmShift + kRvvVmBits - 1, kRvvVmShift); in RvvVM()
1926 return sext(this->Bits(kRvvImm5Shift + kRvvImm5Bits - 1, kRvvImm5Shift), in RvvSimm5()
1932 uint32_t imm = this->Bits(kRvvImm5Shift + kRvvImm5Bits - 1, kRvvImm5Shift); in RvvUimm5()
1937 inline bool AqValue() const { return this->Bits(kAqShift, kAqShift); } in AqValue()
1939 inline bool RlValue() const { return this->Bits(kRlShift, kRlShift); } in RlValue()