Lines Matching defs:Imm
66 static DecodeStatus DecodeFixedPointScaleImm32(MCInst &Inst, unsigned Imm,
69 static DecodeStatus DecodeFixedPointScaleImm64(MCInst &Inst, unsigned Imm,
72 static DecodeStatus DecodePCRelLabel16(MCInst &Inst, unsigned Imm,
75 static DecodeStatus DecodePCRelLabel19(MCInst &Inst, unsigned Imm,
78 static DecodeStatus DecodeMemExtend(MCInst &Inst, unsigned Imm,
81 static DecodeStatus DecodeMRSSystemRegister(MCInst &Inst, unsigned Imm,
84 static DecodeStatus DecodeMSRSystemRegister(MCInst &Inst, unsigned Imm,
144 static DecodeStatus DecodeVecShiftR64Imm(MCInst &Inst, unsigned Imm,
147 static DecodeStatus DecodeVecShiftR64ImmNarrow(MCInst &Inst, unsigned Imm,
150 static DecodeStatus DecodeVecShiftR32Imm(MCInst &Inst, unsigned Imm,
153 static DecodeStatus DecodeVecShiftR32ImmNarrow(MCInst &Inst, unsigned Imm,
156 static DecodeStatus DecodeVecShiftR16Imm(MCInst &Inst, unsigned Imm,
159 static DecodeStatus DecodeVecShiftR16ImmNarrow(MCInst &Inst, unsigned Imm,
162 static DecodeStatus DecodeVecShiftR8Imm(MCInst &Inst, unsigned Imm,
165 static DecodeStatus DecodeVecShiftL64Imm(MCInst &Inst, unsigned Imm,
168 static DecodeStatus DecodeVecShiftL32Imm(MCInst &Inst, unsigned Imm,
171 static DecodeStatus DecodeVecShiftL16Imm(MCInst &Inst, unsigned Imm,
174 static DecodeStatus DecodeVecShiftL8Imm(MCInst &Inst, unsigned Imm,
190 static DecodeStatus DecodeSImm(MCInst &Inst, uint64_t Imm, uint64_t Address,
193 static DecodeStatus DecodeImm8OptLsl(MCInst &Inst, unsigned Imm, uint64_t Addr,
195 static DecodeStatus DecodeSVEIncDecImm(MCInst &Inst, unsigned Imm,
198 static DecodeStatus DecodeSVCROp(MCInst &Inst, unsigned Imm, uint64_t Address,
424 static DecodeStatus DecodeFixedPointScaleImm32(MCInst &Inst, unsigned Imm,
428 Imm |= 0x20;
429 Inst.addOperand(MCOperand::createImm(64 - Imm));
433 static DecodeStatus DecodeFixedPointScaleImm64(MCInst &Inst, unsigned Imm,
436 Inst.addOperand(MCOperand::createImm(64 - Imm));
440 static DecodeStatus DecodePCRelLabel16(MCInst &Inst, unsigned Imm,
445 uint64_t ImmVal = Imm;
455 static DecodeStatus DecodePCRelLabel19(MCInst &Inst, unsigned Imm,
458 int64_t ImmVal = Imm;
470 static DecodeStatus DecodeMemExtend(MCInst &Inst, unsigned Imm,
473 Inst.addOperand(MCOperand::createImm((Imm >> 1) & 1));
474 Inst.addOperand(MCOperand::createImm(Imm & 1));
478 static DecodeStatus DecodeMRSSystemRegister(MCInst &Inst, unsigned Imm,
481 Inst.addOperand(MCOperand::createImm(Imm));
488 static DecodeStatus DecodeMSRSystemRegister(MCInst &Inst, unsigned Imm,
491 Inst.addOperand(MCOperand::createImm(Imm));
523 static DecodeStatus DecodeVecShiftRImm(MCInst &Inst, unsigned Imm,
525 Inst.addOperand(MCOperand::createImm(Add - Imm));
529 static DecodeStatus DecodeVecShiftLImm(MCInst &Inst, unsigned Imm,
531 Inst.addOperand(MCOperand::createImm((Imm + Add) & (Add - 1)));
535 static DecodeStatus DecodeVecShiftR64Imm(MCInst &Inst, unsigned Imm,
538 return DecodeVecShiftRImm(Inst, Imm, 64);
541 static DecodeStatus DecodeVecShiftR64ImmNarrow(MCInst &Inst, unsigned Imm,
544 return DecodeVecShiftRImm(Inst, Imm | 0x20, 64);
547 static DecodeStatus DecodeVecShiftR32Imm(MCInst &Inst, unsigned Imm,
550 return DecodeVecShiftRImm(Inst, Imm, 32);
553 static DecodeStatus DecodeVecShiftR32ImmNarrow(MCInst &Inst, unsigned Imm,
556 return DecodeVecShiftRImm(Inst, Imm | 0x10, 32);
559 static DecodeStatus DecodeVecShiftR16Imm(MCInst &Inst, unsigned Imm,
562 return DecodeVecShiftRImm(Inst, Imm, 16);
565 static DecodeStatus DecodeVecShiftR16ImmNarrow(MCInst &Inst, unsigned Imm,
568 return DecodeVecShiftRImm(Inst, Imm | 0x8, 16);
571 static DecodeStatus DecodeVecShiftR8Imm(MCInst &Inst, unsigned Imm,
574 return DecodeVecShiftRImm(Inst, Imm, 8);
577 static DecodeStatus DecodeVecShiftL64Imm(MCInst &Inst, unsigned Imm,
580 return DecodeVecShiftLImm(Inst, Imm, 64);
583 static DecodeStatus DecodeVecShiftL32Imm(MCInst &Inst, unsigned Imm,
586 return DecodeVecShiftLImm(Inst, Imm, 32);
589 static DecodeStatus DecodeVecShiftL16Imm(MCInst &Inst, unsigned Imm,
592 return DecodeVecShiftLImm(Inst, Imm, 16);
595 static DecodeStatus DecodeVecShiftL8Imm(MCInst &Inst, unsigned Imm,
598 return DecodeVecShiftLImm(Inst, Imm, 8);
1450 unsigned Imm = fieldFromInstruction(insn, 10, 14);
1454 unsigned ShifterVal = (Imm >> 12) & 3;
1455 unsigned ImmVal = Imm & 0xFFF;
1480 if (!Decoder->tryAddingSymbolicOperand(Inst, Imm, Addr, Fail, 0, 0, 4))
1642 static DecodeStatus DecodeSImm(MCInst &Inst, uint64_t Imm, uint64_t Address,
1644 if (Imm & ~((1LL << Bits) - 1))
1647 // Imm is a signed immediate, so sign extend it.
1648 if (Imm & (1 << (Bits - 1)))
1649 Imm |= ~((1LL << Bits) - 1);
1651 Inst.addOperand(MCOperand::createImm(Imm));
1657 static DecodeStatus DecodeImm8OptLsl(MCInst &Inst, unsigned Imm, uint64_t Addr,
1659 unsigned Val = (uint8_t)Imm;
1660 unsigned Shift = (Imm & 0x100) ? 8 : 0;
1669 static DecodeStatus DecodeSVEIncDecImm(MCInst &Inst, unsigned Imm,
1672 Inst.addOperand(MCOperand::createImm(Imm + 1));
1676 static DecodeStatus DecodeSVCROp(MCInst &Inst, unsigned Imm, uint64_t Address,
1678 if (AArch64SVCR::lookupSVCRByEncoding(Imm)) {
1679 Inst.addOperand(MCOperand::createImm(Imm));