Lines Matching defs:Imm

70 static DecodeStatus DecodeFixedPointScaleImm32(MCInst &Inst, unsigned Imm,
73 static DecodeStatus DecodeFixedPointScaleImm64(MCInst &Inst, unsigned Imm,
76 static DecodeStatus DecodePCRelLabel16(MCInst &Inst, unsigned Imm,
79 static DecodeStatus DecodePCRelLabel19(MCInst &Inst, unsigned Imm,
82 static DecodeStatus DecodePCRelLabel9(MCInst &Inst, unsigned Imm,
85 static DecodeStatus DecodeMemExtend(MCInst &Inst, unsigned Imm,
88 static DecodeStatus DecodeMRSSystemRegister(MCInst &Inst, unsigned Imm,
91 static DecodeStatus DecodeMSRSystemRegister(MCInst &Inst, unsigned Imm,
151 static DecodeStatus DecodeVecShiftR64Imm(MCInst &Inst, unsigned Imm,
154 static DecodeStatus DecodeVecShiftR64ImmNarrow(MCInst &Inst, unsigned Imm,
157 static DecodeStatus DecodeVecShiftR32Imm(MCInst &Inst, unsigned Imm,
160 static DecodeStatus DecodeVecShiftR32ImmNarrow(MCInst &Inst, unsigned Imm,
163 static DecodeStatus DecodeVecShiftR16Imm(MCInst &Inst, unsigned Imm,
166 static DecodeStatus DecodeVecShiftR16ImmNarrow(MCInst &Inst, unsigned Imm,
169 static DecodeStatus DecodeVecShiftR8Imm(MCInst &Inst, unsigned Imm,
172 static DecodeStatus DecodeVecShiftL64Imm(MCInst &Inst, unsigned Imm,
175 static DecodeStatus DecodeVecShiftL32Imm(MCInst &Inst, unsigned Imm,
178 static DecodeStatus DecodeVecShiftL16Imm(MCInst &Inst, unsigned Imm,
181 static DecodeStatus DecodeVecShiftL8Imm(MCInst &Inst, unsigned Imm,
197 static DecodeStatus DecodeSImm(MCInst &Inst, uint64_t Imm, uint64_t Address,
200 static DecodeStatus DecodeImm8OptLsl(MCInst &Inst, unsigned Imm, uint64_t Addr,
202 static DecodeStatus DecodeSVEIncDecImm(MCInst &Inst, unsigned Imm,
205 static DecodeStatus DecodeSVCROp(MCInst &Inst, unsigned Imm, uint64_t Address,
458 static DecodeStatus DecodeFixedPointScaleImm32(MCInst &Inst, unsigned Imm,
462 Imm |= 0x20;
463 Inst.addOperand(MCOperand::createImm(64 - Imm));
467 static DecodeStatus DecodeFixedPointScaleImm64(MCInst &Inst, unsigned Imm,
470 Inst.addOperand(MCOperand::createImm(64 - Imm));
474 static DecodeStatus DecodePCRelLabel16(MCInst &Inst, unsigned Imm,
479 uint64_t ImmVal = Imm;
489 static DecodeStatus DecodePCRelLabel19(MCInst &Inst, unsigned Imm,
492 int64_t ImmVal = Imm;
504 static DecodeStatus DecodePCRelLabel9(MCInst &Inst, unsigned Imm, uint64_t Addr,
506 int64_t ImmVal = Imm;
518 static DecodeStatus DecodeMemExtend(MCInst &Inst, unsigned Imm,
521 Inst.addOperand(MCOperand::createImm((Imm >> 1) & 1));
522 Inst.addOperand(MCOperand::createImm(Imm & 1));
526 static DecodeStatus DecodeMRSSystemRegister(MCInst &Inst, unsigned Imm,
529 Inst.addOperand(MCOperand::createImm(Imm));
536 static DecodeStatus DecodeMSRSystemRegister(MCInst &Inst, unsigned Imm,
539 Inst.addOperand(MCOperand::createImm(Imm));
571 static DecodeStatus DecodeVecShiftRImm(MCInst &Inst, unsigned Imm,
573 Inst.addOperand(MCOperand::createImm(Add - Imm));
577 static DecodeStatus DecodeVecShiftLImm(MCInst &Inst, unsigned Imm,
579 Inst.addOperand(MCOperand::createImm((Imm + Add) & (Add - 1)));
583 static DecodeStatus DecodeVecShiftR64Imm(MCInst &Inst, unsigned Imm,
586 return DecodeVecShiftRImm(Inst, Imm, 64);
589 static DecodeStatus DecodeVecShiftR64ImmNarrow(MCInst &Inst, unsigned Imm,
592 return DecodeVecShiftRImm(Inst, Imm | 0x20, 64);
595 static DecodeStatus DecodeVecShiftR32Imm(MCInst &Inst, unsigned Imm,
598 return DecodeVecShiftRImm(Inst, Imm, 32);
601 static DecodeStatus DecodeVecShiftR32ImmNarrow(MCInst &Inst, unsigned Imm,
604 return DecodeVecShiftRImm(Inst, Imm | 0x10, 32);
607 static DecodeStatus DecodeVecShiftR16Imm(MCInst &Inst, unsigned Imm,
610 return DecodeVecShiftRImm(Inst, Imm, 16);
613 static DecodeStatus DecodeVecShiftR16ImmNarrow(MCInst &Inst, unsigned Imm,
616 return DecodeVecShiftRImm(Inst, Imm | 0x8, 16);
619 static DecodeStatus DecodeVecShiftR8Imm(MCInst &Inst, unsigned Imm,
622 return DecodeVecShiftRImm(Inst, Imm, 8);
625 static DecodeStatus DecodeVecShiftL64Imm(MCInst &Inst, unsigned Imm,
628 return DecodeVecShiftLImm(Inst, Imm, 64);
631 static DecodeStatus DecodeVecShiftL32Imm(MCInst &Inst, unsigned Imm,
634 return DecodeVecShiftLImm(Inst, Imm, 32);
637 static DecodeStatus DecodeVecShiftL16Imm(MCInst &Inst, unsigned Imm,
640 return DecodeVecShiftLImm(Inst, Imm, 16);
643 static DecodeStatus DecodeVecShiftL8Imm(MCInst &Inst, unsigned Imm,
646 return DecodeVecShiftLImm(Inst, Imm, 8);
1522 unsigned Imm = fieldFromInstruction(insn, 10, 14);
1526 unsigned ShifterVal = (Imm >> 12) & 3;
1527 unsigned ImmVal = Imm & 0xFFF;
1552 if (!Decoder->tryAddingSymbolicOperand(Inst, Imm, Addr, Fail, 0, 0, 4))
1714 static DecodeStatus DecodeSImm(MCInst &Inst, uint64_t Imm, uint64_t Address,
1716 if (Imm & ~((1LL << Bits) - 1))
1719 // Imm is a signed immediate, so sign extend it.
1720 if (Imm & (1 << (Bits - 1)))
1721 Imm |= ~((1LL << Bits) - 1);
1723 Inst.addOperand(MCOperand::createImm(Imm));
1729 static DecodeStatus DecodeImm8OptLsl(MCInst &Inst, unsigned Imm, uint64_t Addr,
1731 unsigned Val = (uint8_t)Imm;
1732 unsigned Shift = (Imm & 0x100) ? 8 : 0;
1741 static DecodeStatus DecodeSVEIncDecImm(MCInst &Inst, unsigned Imm,
1744 Inst.addOperand(MCOperand::createImm(Imm + 1));
1748 static DecodeStatus DecodeSVCROp(MCInst &Inst, unsigned Imm, uint64_t Address,
1750 if (AArch64SVCR::lookupSVCRByEncoding(Imm)) {
1751 Inst.addOperand(MCOperand::createImm(Imm));