• Home
  • Raw
  • Download

Lines Matching refs:ImmValue

183   bool loadImmediate(int64_t ImmValue, unsigned DstReg, unsigned SrcReg,
2047 int64_t ImmValue = Inst.getOperand(2).getImm(); in tryExpandInstruction() local
2048 if (isInt<16>(ImmValue)) in tryExpandInstruction()
2059 int64_t ImmValue = Inst.getOperand(2).getImm(); in tryExpandInstruction() local
2060 if (isUInt<16>(ImmValue)) in tryExpandInstruction()
2146 bool MipsAsmParser::loadImmediate(int64_t ImmValue, unsigned DstReg, in loadImmediate() argument
2158 if (isInt<32>(ImmValue) || isUInt<32>(ImmValue)) { in loadImmediate()
2162 ImmValue = SignExtend64<32>(ImmValue); in loadImmediate()
2187 if (isInt<16>(ImmValue)) { in loadImmediate()
2195 TOut.emitRRI(Mips::DADDiu, DstReg, SrcReg, ImmValue, IDLoc, STI); in loadImmediate()
2199 TOut.emitRRI(Mips::ADDiu, DstReg, SrcReg, ImmValue, IDLoc, STI); in loadImmediate()
2203 if (isUInt<16>(ImmValue)) { in loadImmediate()
2211 TOut.emitRRI(Mips::ORi, TmpReg, ZeroReg, ImmValue, IDLoc, STI); in loadImmediate()
2217 if (isInt<32>(ImmValue) || isUInt<32>(ImmValue)) { in loadImmediate()
2220 uint16_t Bits31To16 = (ImmValue >> 16) & 0xffff; in loadImmediate()
2221 uint16_t Bits15To0 = ImmValue & 0xffff; in loadImmediate()
2223 if (!Is32BitImm && !isInt<32>(ImmValue)) { in loadImmediate()
2226 if (ImmValue == 0xffffffff) { in loadImmediate()
2253 if (isShiftedUIntAtAnyPosition<16>(ImmValue)) { in loadImmediate()
2261 unsigned FirstSet = findFirstSet((uint64_t)ImmValue); in loadImmediate()
2262 unsigned LastSet = findLastSet((uint64_t)ImmValue); in loadImmediate()
2264 uint16_t Bits = (ImmValue >> ShiftAmount) & 0xffff; in loadImmediate()
2281 if (loadImmediate(ImmValue >> 32, TmpReg, Mips::NoRegister, true, false, in loadImmediate()
2289 uint16_t ImmChunk = (ImmValue >> BitNum) & 0xffff; in loadImmediate()
2611 int64_t ImmValue = ImmOp.getImm(); in expandBranchImm() local
2612 if (ImmValue == 0) in expandBranchImm()
2622 if (loadImmediate(ImmValue, ATReg, Mips::NoRegister, !isGP64bit(), true, in expandBranchImm()
3329 int64_t ImmValue = Inst.getOperand(2).getImm(); in expandAliasImmediate() local
3331 bool Is32Bit = isInt<32>(ImmValue) || isUInt<32>(ImmValue); in expandAliasImmediate()
3343 if (!loadImmediate(ImmValue, DstReg, Mips::NoRegister, Is32Bit, false, Inst.getLoc(), Out, STI)) { in expandAliasImmediate()
3453 int64_t ImmValue = Inst.getOperand(2).getImm(); in expandRotationImm() local
3462 uint64_t ShiftValue = ImmValue; in expandRotationImm()
3463 if (ImmValue != 0) in expandRotationImm()
3464 ShiftValue = MaxShift - ImmValue; in expandRotationImm()
3470 TOut.emitRRI(Mips::ROTR, DReg, SReg, ImmValue, Inst.getLoc(), STI); in expandRotationImm()
3479 if (ImmValue == 0) { in expandRotationImm()
3501 TOut.emitRRI(FirstShift, ATReg, SReg, ImmValue, Inst.getLoc(), STI); in expandRotationImm()
3502 TOut.emitRRI(SecondShift, DReg, SReg, 32 - ImmValue, Inst.getLoc(), STI); in expandRotationImm()
3582 int64_t ImmValue = Inst.getOperand(2).getImm() % 64; in expandDRotationImm() local
3592 if (ImmValue == 0) in expandDRotationImm()
3594 else if (ImmValue % 32 == 0) in expandDRotationImm()
3596 else if ((ImmValue >= 1) && (ImmValue <= 32)) { in expandDRotationImm()
3601 } else if (ImmValue >= 33) { in expandDRotationImm()
3608 uint64_t ShiftValue = ImmValue % 32; in expandDRotationImm()
3610 ShiftValue = (32 - ImmValue % 32) % 32; in expandDRotationImm()
3619 if (ImmValue == 0) { in expandDRotationImm()
3628 if ((ImmValue >= 1) && (ImmValue <= 31)) { in expandDRotationImm()
3632 if (ImmValue == 32) { in expandDRotationImm()
3636 if ((ImmValue >= 33) && (ImmValue <= 63)) { in expandDRotationImm()
3642 if ((ImmValue >= 1) && (ImmValue <= 31)) { in expandDRotationImm()
3646 if (ImmValue == 32) { in expandDRotationImm()
3650 if ((ImmValue >= 33) && (ImmValue <= 63)) { in expandDRotationImm()
3661 TOut.emitRRI(FirstShift, ATReg, SReg, ImmValue % 32, Inst.getLoc(), STI); in expandDRotationImm()
3662 TOut.emitRRI(SecondShift, DReg, SReg, (32 - ImmValue % 32) % 32, in expandDRotationImm()