• Home
  • Raw
  • Download

Lines Matching refs:ImmValue

229   bool loadImmediate(int64_t ImmValue, unsigned DstReg, unsigned SrcReg,
2557 int64_t ImmValue = Inst.getOperand(2).getImm(); in tryExpandInstruction() local
2558 if (isInt<16>(ImmValue)) in tryExpandInstruction()
2569 int64_t ImmValue = Inst.getOperand(2).getImm(); in tryExpandInstruction() local
2570 if (isUInt<16>(ImmValue)) in tryExpandInstruction()
2698 bool MipsAsmParser::loadImmediate(int64_t ImmValue, unsigned DstReg, in loadImmediate() argument
2710 if (isInt<32>(ImmValue) || isUInt<32>(ImmValue)) { in loadImmediate()
2714 ImmValue = SignExtend64<32>(ImmValue); in loadImmediate()
2739 if (isInt<16>(ImmValue)) { in loadImmediate()
2747 TOut.emitRRI(Mips::DADDiu, DstReg, SrcReg, ImmValue, IDLoc, STI); in loadImmediate()
2751 TOut.emitRRI(Mips::ADDiu, DstReg, SrcReg, ImmValue, IDLoc, STI); in loadImmediate()
2755 if (isUInt<16>(ImmValue)) { in loadImmediate()
2763 TOut.emitRRI(Mips::ORi, TmpReg, ZeroReg, ImmValue, IDLoc, STI); in loadImmediate()
2769 if (isInt<32>(ImmValue) || isUInt<32>(ImmValue)) { in loadImmediate()
2772 uint16_t Bits31To16 = (ImmValue >> 16) & 0xffff; in loadImmediate()
2773 uint16_t Bits15To0 = ImmValue & 0xffff; in loadImmediate()
2774 if (!Is32BitImm && !isInt<32>(ImmValue)) { in loadImmediate()
2777 if (ImmValue == 0xffffffff) { in loadImmediate()
2804 if (isShiftedUIntAtAnyPosition<16>(ImmValue)) { in loadImmediate()
2812 unsigned FirstSet = findFirstSet((uint64_t)ImmValue); in loadImmediate()
2813 unsigned LastSet = findLastSet((uint64_t)ImmValue); in loadImmediate()
2815 uint16_t Bits = (ImmValue >> ShiftAmount) & 0xffff; in loadImmediate()
2832 if (loadImmediate(ImmValue >> 32, TmpReg, Mips::NoRegister, true, false, in loadImmediate()
2840 uint16_t ImmChunk = (ImmValue >> BitNum) & 0xffff; in loadImmediate()
3647 int64_t ImmValue = ImmOp.getImm(); in expandBranchImm() local
3648 if (ImmValue == 0) { in expandBranchImm()
3663 if (loadImmediate(ImmValue, ATReg, Mips::NoRegister, !isGP64bit(), true, in expandBranchImm()
4178 int64_t ImmValue; in expandDivRem() local
4186 ImmValue = RtOp.getImm(); in expandDivRem()
4220 if (ImmValue == 0) { in expandDivRem()
4228 if (isRem && (ImmValue == 1 || (Signed && (ImmValue == -1)))) { in expandDivRem()
4231 } else if (isDiv && ImmValue == 1) { in expandDivRem()
4234 } else if (isDiv && Signed && ImmValue == -1) { in expandDivRem()
4238 if (loadImmediate(ImmValue, ATReg, Mips::NoRegister, isInt<32>(ImmValue), in expandDivRem()
4575 int64_t ImmValue = Inst.getOperand(2).getImm(); in expandSgeImm() local
4596 if (isInt<16>(ImmValue)) { in expandSgeImm()
4598 TOut.emitRRI(OpImmCode, DstReg, SrcReg, ImmValue, IDLoc, STI); in expandSgeImm()
4609 if (loadImmediate(ImmValue, ImmReg, Mips::NoRegister, isInt<32>(ImmValue), in expandSgeImm()
4632 int64_t ImmValue = Inst.getOperand(2).getImm(); in expandSgtImm() local
4657 if (loadImmediate(ImmValue, ImmReg, Mips::NoRegister, isInt<32>(ImmValue), in expandSgtImm()
4712 int64_t ImmValue = Inst.getOperand(2).getImm(); in expandSleImm() local
4739 if (loadImmediate(ImmValue, ImmReg, Mips::NoRegister, isInt<32>(ImmValue), in expandSleImm()
4763 int64_t ImmValue = Inst.getOperand(2).getImm(); in expandAliasImmediate() local
4765 bool Is32Bit = isInt<32>(ImmValue) || (!isGP64bit() && isUInt<32>(ImmValue)); in expandAliasImmediate()
4777 if (!loadImmediate(ImmValue, DstReg, Mips::NoRegister, Is32Bit, false, in expandAliasImmediate()
4925 int64_t ImmValue = Inst.getOperand(2).getImm(); in expandRotationImm() local
4933 uint64_t ShiftValue = ImmValue; in expandRotationImm()
4934 if (ImmValue != 0) in expandRotationImm()
4935 ShiftValue = MaxShift - ImmValue; in expandRotationImm()
4941 TOut.emitRRI(Mips::ROTR, DReg, SReg, ImmValue, Inst.getLoc(), STI); in expandRotationImm()
4949 if (ImmValue == 0) { in expandRotationImm()
4971 TOut.emitRRI(FirstShift, ATReg, SReg, ImmValue, Inst.getLoc(), STI); in expandRotationImm()
4972 TOut.emitRRI(SecondShift, DReg, SReg, 32 - ImmValue, Inst.getLoc(), STI); in expandRotationImm()
5050 int64_t ImmValue = Inst.getOperand(2).getImm() % 64; in expandDRotationImm() local
5059 if (ImmValue == 0) in expandDRotationImm()
5061 else if (ImmValue % 32 == 0) in expandDRotationImm()
5063 else if ((ImmValue >= 1) && (ImmValue <= 32)) { in expandDRotationImm()
5068 } else if (ImmValue >= 33) { in expandDRotationImm()
5075 uint64_t ShiftValue = ImmValue % 32; in expandDRotationImm()
5077 ShiftValue = (32 - ImmValue % 32) % 32; in expandDRotationImm()
5085 if (ImmValue == 0) { in expandDRotationImm()
5094 if ((ImmValue >= 1) && (ImmValue <= 31)) { in expandDRotationImm()
5098 if (ImmValue == 32) { in expandDRotationImm()
5102 if ((ImmValue >= 33) && (ImmValue <= 63)) { in expandDRotationImm()
5108 if ((ImmValue >= 1) && (ImmValue <= 31)) { in expandDRotationImm()
5112 if (ImmValue == 32) { in expandDRotationImm()
5116 if ((ImmValue >= 33) && (ImmValue <= 63)) { in expandDRotationImm()
5127 TOut.emitRRI(FirstShift, ATReg, SReg, ImmValue % 32, Inst.getLoc(), STI); in expandDRotationImm()
5128 TOut.emitRRI(SecondShift, DReg, SReg, (32 - ImmValue % 32) % 32, in expandDRotationImm()
5160 int32_t ImmValue = Inst.getOperand(2).getImm(); in expandMulImm() local
5166 loadImmediate(ImmValue, ATReg, Mips::NoRegister, true, false, IDLoc, Out, in expandMulImm()
5476 int64_t ImmValue = Inst.getOperand(2).getImm(); in expandSneI() local
5480 if (ImmValue == 0) { in expandSneI()
5494 if (ImmValue > -0x8000 && ImmValue < 0) { in expandSneI()
5495 ImmValue = -ImmValue; in expandSneI()
5501 if (isUInt<16>(ImmValue)) { in expandSneI()
5502 TOut.emitRRI(Opc, DstReg, SrcReg, ImmValue, IDLoc, STI); in expandSneI()
5511 if (loadImmediate(ImmValue, ATReg, Mips::NoRegister, isInt<32>(ImmValue), in expandSneI()
5741 int64_t ImmValue = BaseOp.getImm(); in expandSaaAddr() local
5742 if (ImmValue == 0) { in expandSaaAddr()