Lines Matching refs:Imm
227 static DecodeStatus decodeUImmOperand(MCInst &Inst, uint64_t Imm, in decodeUImmOperand() argument
230 assert(isUInt<N>(Imm) && "Invalid immediate"); in decodeUImmOperand()
231 Inst.addOperand(MCOperand::createImm(Imm << S)); in decodeUImmOperand()
236 static DecodeStatus decodeOImmOperand(MCInst &Inst, uint64_t Imm, in decodeOImmOperand() argument
239 assert(isUInt<N>(Imm) && "Invalid immediate"); in decodeOImmOperand()
240 Inst.addOperand(MCOperand::createImm(Imm + 1)); in decodeOImmOperand()
244 static DecodeStatus decodeLRW16Imm8(MCInst &Inst, uint64_t Imm, int64_t Address, in decodeLRW16Imm8() argument
246 assert(isUInt<8>(Imm) && "Invalid immediate"); in decodeLRW16Imm8()
247 if ((Imm >> 7) & 0x1) { in decodeLRW16Imm8()
248 Inst.addOperand(MCOperand::createImm((Imm & 0x7F) << 2)); in decodeLRW16Imm8()
250 uint64_t V = ((Imm ^ 0xFFFFFFFF) & 0xFF); in decodeLRW16Imm8()
257 static DecodeStatus decodeJMPIXImmOperand(MCInst &Inst, uint64_t Imm, in decodeJMPIXImmOperand() argument
260 assert(isUInt<2>(Imm) && "Invalid immediate"); in decodeJMPIXImmOperand()
262 if (Imm == 0) in decodeJMPIXImmOperand()
264 else if (Imm == 1) in decodeJMPIXImmOperand()
266 else if (Imm == 2) in decodeJMPIXImmOperand()
268 else if (Imm == 3) in decodeJMPIXImmOperand()
276 static DecodeStatus DecodeRegSeqOperand(MCInst &Inst, uint64_t Imm, in DecodeRegSeqOperand() argument
279 assert(isUInt<10>(Imm) && "Invalid immediate"); in DecodeRegSeqOperand()
281 auto Imm5 = Imm & 0x1f; in DecodeRegSeqOperand()
282 auto Ry = (Imm >> 5) & 0x1f; in DecodeRegSeqOperand()
293 static DecodeStatus DecodeRegSeqOperandF1(MCInst &Inst, uint64_t Imm, in DecodeRegSeqOperandF1() argument
296 assert(isUInt<10>(Imm) && "Invalid immediate"); in DecodeRegSeqOperandF1()
298 auto Imm5 = Imm & 0x1f; in DecodeRegSeqOperandF1()
299 auto Ry = (Imm >> 5) & 0x1f; in DecodeRegSeqOperandF1()
310 static DecodeStatus DecodeRegSeqOperandD1(MCInst &Inst, uint64_t Imm, in DecodeRegSeqOperandD1() argument
313 assert(isUInt<10>(Imm) && "Invalid immediate"); in DecodeRegSeqOperandD1()
315 auto Imm5 = Imm & 0x1f; in DecodeRegSeqOperandD1()
316 auto Ry = (Imm >> 5) & 0x1f; in DecodeRegSeqOperandD1()
327 static DecodeStatus DecodeRegSeqOperandF2(MCInst &Inst, uint64_t Imm, in DecodeRegSeqOperandF2() argument
330 assert(isUInt<10>(Imm) && "Invalid immediate"); in DecodeRegSeqOperandF2()
332 auto Imm5 = Imm & 0x1f; in DecodeRegSeqOperandF2()
333 auto Ry = (Imm >> 5) & 0x1f; in DecodeRegSeqOperandF2()
344 static DecodeStatus DecodeRegSeqOperandD2(MCInst &Inst, uint64_t Imm, in DecodeRegSeqOperandD2() argument
347 assert(isUInt<10>(Imm) && "Invalid immediate"); in DecodeRegSeqOperandD2()
349 auto Imm5 = Imm & 0x1f; in DecodeRegSeqOperandD2()
350 auto Ry = (Imm >> 5) & 0x1f; in DecodeRegSeqOperandD2()
361 static DecodeStatus decodeImmShiftOpValue(MCInst &Inst, uint64_t Imm, in decodeImmShiftOpValue() argument
364 Inst.addOperand(MCOperand::createImm(Log2_64(Imm))); in decodeImmShiftOpValue()
369 static DecodeStatus decodeSImmOperand(MCInst &Inst, uint64_t Imm, in decodeSImmOperand() argument
372 assert(isUInt<N>(Imm) && "Invalid immediate"); in decodeSImmOperand()
374 Inst.addOperand(MCOperand::createImm(SignExtend64<N>(Imm) << S)); in decodeSImmOperand()