Lines Matching refs: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, in DecodeFixedPointScaleImm32() argument
428 Imm |= 0x20; in DecodeFixedPointScaleImm32()
429 Inst.addOperand(MCOperand::createImm(64 - Imm)); in DecodeFixedPointScaleImm32()
433 static DecodeStatus DecodeFixedPointScaleImm64(MCInst &Inst, unsigned Imm, in DecodeFixedPointScaleImm64() argument
436 Inst.addOperand(MCOperand::createImm(64 - Imm)); in DecodeFixedPointScaleImm64()
440 static DecodeStatus DecodePCRelLabel16(MCInst &Inst, unsigned Imm, in DecodePCRelLabel16() argument
445 uint64_t ImmVal = Imm; in DecodePCRelLabel16()
455 static DecodeStatus DecodePCRelLabel19(MCInst &Inst, unsigned Imm, in DecodePCRelLabel19() argument
458 int64_t ImmVal = Imm; in DecodePCRelLabel19()
470 static DecodeStatus DecodeMemExtend(MCInst &Inst, unsigned Imm, in DecodeMemExtend() argument
473 Inst.addOperand(MCOperand::createImm((Imm >> 1) & 1)); in DecodeMemExtend()
474 Inst.addOperand(MCOperand::createImm(Imm & 1)); in DecodeMemExtend()
478 static DecodeStatus DecodeMRSSystemRegister(MCInst &Inst, unsigned Imm, in DecodeMRSSystemRegister() argument
481 Inst.addOperand(MCOperand::createImm(Imm)); in DecodeMRSSystemRegister()
488 static DecodeStatus DecodeMSRSystemRegister(MCInst &Inst, unsigned Imm, in DecodeMSRSystemRegister() argument
491 Inst.addOperand(MCOperand::createImm(Imm)); in DecodeMSRSystemRegister()
523 static DecodeStatus DecodeVecShiftRImm(MCInst &Inst, unsigned Imm, in DecodeVecShiftRImm() argument
525 Inst.addOperand(MCOperand::createImm(Add - Imm)); in DecodeVecShiftRImm()
529 static DecodeStatus DecodeVecShiftLImm(MCInst &Inst, unsigned Imm, in DecodeVecShiftLImm() argument
531 Inst.addOperand(MCOperand::createImm((Imm + Add) & (Add - 1))); in DecodeVecShiftLImm()
535 static DecodeStatus DecodeVecShiftR64Imm(MCInst &Inst, unsigned Imm, in DecodeVecShiftR64Imm() argument
538 return DecodeVecShiftRImm(Inst, Imm, 64); in DecodeVecShiftR64Imm()
541 static DecodeStatus DecodeVecShiftR64ImmNarrow(MCInst &Inst, unsigned Imm, in DecodeVecShiftR64ImmNarrow() argument
544 return DecodeVecShiftRImm(Inst, Imm | 0x20, 64); in DecodeVecShiftR64ImmNarrow()
547 static DecodeStatus DecodeVecShiftR32Imm(MCInst &Inst, unsigned Imm, in DecodeVecShiftR32Imm() argument
550 return DecodeVecShiftRImm(Inst, Imm, 32); in DecodeVecShiftR32Imm()
553 static DecodeStatus DecodeVecShiftR32ImmNarrow(MCInst &Inst, unsigned Imm, in DecodeVecShiftR32ImmNarrow() argument
556 return DecodeVecShiftRImm(Inst, Imm | 0x10, 32); in DecodeVecShiftR32ImmNarrow()
559 static DecodeStatus DecodeVecShiftR16Imm(MCInst &Inst, unsigned Imm, in DecodeVecShiftR16Imm() argument
562 return DecodeVecShiftRImm(Inst, Imm, 16); in DecodeVecShiftR16Imm()
565 static DecodeStatus DecodeVecShiftR16ImmNarrow(MCInst &Inst, unsigned Imm, in DecodeVecShiftR16ImmNarrow() argument
568 return DecodeVecShiftRImm(Inst, Imm | 0x8, 16); in DecodeVecShiftR16ImmNarrow()
571 static DecodeStatus DecodeVecShiftR8Imm(MCInst &Inst, unsigned Imm, in DecodeVecShiftR8Imm() argument
574 return DecodeVecShiftRImm(Inst, Imm, 8); in DecodeVecShiftR8Imm()
577 static DecodeStatus DecodeVecShiftL64Imm(MCInst &Inst, unsigned Imm, in DecodeVecShiftL64Imm() argument
580 return DecodeVecShiftLImm(Inst, Imm, 64); in DecodeVecShiftL64Imm()
583 static DecodeStatus DecodeVecShiftL32Imm(MCInst &Inst, unsigned Imm, in DecodeVecShiftL32Imm() argument
586 return DecodeVecShiftLImm(Inst, Imm, 32); in DecodeVecShiftL32Imm()
589 static DecodeStatus DecodeVecShiftL16Imm(MCInst &Inst, unsigned Imm, in DecodeVecShiftL16Imm() argument
592 return DecodeVecShiftLImm(Inst, Imm, 16); in DecodeVecShiftL16Imm()
595 static DecodeStatus DecodeVecShiftL8Imm(MCInst &Inst, unsigned Imm, in DecodeVecShiftL8Imm() argument
598 return DecodeVecShiftLImm(Inst, Imm, 8); in DecodeVecShiftL8Imm()
1450 unsigned Imm = fieldFromInstruction(insn, 10, 14); in DecodeAddSubImmShift() local
1454 unsigned ShifterVal = (Imm >> 12) & 3; in DecodeAddSubImmShift()
1455 unsigned ImmVal = Imm & 0xFFF; in DecodeAddSubImmShift()
1480 if (!Decoder->tryAddingSymbolicOperand(Inst, Imm, Addr, Fail, 0, 0, 4)) in DecodeAddSubImmShift()
1642 static DecodeStatus DecodeSImm(MCInst &Inst, uint64_t Imm, uint64_t Address, in DecodeSImm() argument
1644 if (Imm & ~((1LL << Bits) - 1)) in DecodeSImm()
1648 if (Imm & (1 << (Bits - 1))) in DecodeSImm()
1649 Imm |= ~((1LL << Bits) - 1); in DecodeSImm()
1651 Inst.addOperand(MCOperand::createImm(Imm)); in DecodeSImm()
1657 static DecodeStatus DecodeImm8OptLsl(MCInst &Inst, unsigned Imm, uint64_t Addr, in DecodeImm8OptLsl() argument
1659 unsigned Val = (uint8_t)Imm; in DecodeImm8OptLsl()
1660 unsigned Shift = (Imm & 0x100) ? 8 : 0; in DecodeImm8OptLsl()
1669 static DecodeStatus DecodeSVEIncDecImm(MCInst &Inst, unsigned Imm, in DecodeSVEIncDecImm() argument
1672 Inst.addOperand(MCOperand::createImm(Imm + 1)); in DecodeSVEIncDecImm()
1676 static DecodeStatus DecodeSVCROp(MCInst &Inst, unsigned Imm, uint64_t Address, in DecodeSVCROp() argument
1678 if (AArch64SVCR::lookupSVCRByEncoding(Imm)) { in DecodeSVCROp()
1679 Inst.addOperand(MCOperand::createImm(Imm)); in DecodeSVCROp()