Lines Matching defs:Inst
75 static DecodeStatus DecodeGPRRegisterClass(MCInst &Inst, uint32_t RegNo,
84 Inst.addOperand(MCOperand::createReg(Reg));
88 static DecodeStatus DecodeGPRF16RegisterClass(MCInst &Inst, uint32_t RegNo,
97 Inst.addOperand(MCOperand::createReg(Reg));
101 static DecodeStatus DecodeGPRF32RegisterClass(MCInst &Inst, uint32_t RegNo,
110 Inst.addOperand(MCOperand::createReg(Reg));
114 static DecodeStatus DecodeGPRX1X5RegisterClass(MCInst &Inst, uint32_t RegNo,
121 Inst.addOperand(MCOperand::createReg(Reg));
125 static DecodeStatus DecodeFPR16RegisterClass(MCInst &Inst, uint32_t RegNo,
132 Inst.addOperand(MCOperand::createReg(Reg));
136 static DecodeStatus DecodeFPR32RegisterClass(MCInst &Inst, uint32_t RegNo,
143 Inst.addOperand(MCOperand::createReg(Reg));
147 static DecodeStatus DecodeFPR32CRegisterClass(MCInst &Inst, uint32_t RegNo,
154 Inst.addOperand(MCOperand::createReg(Reg));
158 static DecodeStatus DecodeFPR64RegisterClass(MCInst &Inst, uint32_t RegNo,
165 Inst.addOperand(MCOperand::createReg(Reg));
169 static DecodeStatus DecodeFPR64CRegisterClass(MCInst &Inst, uint32_t RegNo,
176 Inst.addOperand(MCOperand::createReg(Reg));
180 static DecodeStatus DecodeGPRNoX0RegisterClass(MCInst &Inst, uint32_t RegNo,
187 return DecodeGPRRegisterClass(Inst, RegNo, Address, Decoder);
191 DecodeGPRNoX0X2RegisterClass(MCInst &Inst, uint64_t RegNo, uint32_t Address,
197 return DecodeGPRNoX0RegisterClass(Inst, RegNo, Address, Decoder);
200 static DecodeStatus DecodeGPRCRegisterClass(MCInst &Inst, uint32_t RegNo,
207 Inst.addOperand(MCOperand::createReg(Reg));
211 static DecodeStatus DecodeGPRPairRegisterClass(MCInst &Inst, uint32_t RegNo,
223 Inst.addOperand(MCOperand::createReg(Reg));
227 static DecodeStatus DecodeSR07RegisterClass(MCInst &Inst, uint32_t RegNo,
234 Inst.addOperand(MCOperand::createReg(Reg));
238 static DecodeStatus DecodeVRRegisterClass(MCInst &Inst, uint32_t RegNo,
245 Inst.addOperand(MCOperand::createReg(Reg));
249 static DecodeStatus DecodeVRM2RegisterClass(MCInst &Inst, uint32_t RegNo,
262 Inst.addOperand(MCOperand::createReg(Reg));
266 static DecodeStatus DecodeVRM4RegisterClass(MCInst &Inst, uint32_t RegNo,
279 Inst.addOperand(MCOperand::createReg(Reg));
283 static DecodeStatus DecodeVRM8RegisterClass(MCInst &Inst, uint32_t RegNo,
296 Inst.addOperand(MCOperand::createReg(Reg));
300 static DecodeStatus DecodeVMV0RegisterClass(MCInst &Inst, uint32_t RegNo,
306 Inst.addOperand(MCOperand::createReg(RISCV::V0));
310 static DecodeStatus decodeVMaskReg(MCInst &Inst, uint32_t RegNo,
318 Inst.addOperand(MCOperand::createReg(Reg));
323 static DecodeStatus decodeUImmOperand(MCInst &Inst, uint32_t Imm,
327 Inst.addOperand(MCOperand::createImm(Imm));
331 static DecodeStatus decodeUImmLog2XLenOperand(MCInst &Inst, uint32_t Imm,
340 Inst.addOperand(MCOperand::createImm(Imm));
345 static DecodeStatus decodeUImmNonZeroOperand(MCInst &Inst, uint32_t Imm,
350 return decodeUImmOperand<N>(Inst, Imm, Address, Decoder);
354 decodeUImmLog2XLenNonZeroOperand(MCInst &Inst, uint32_t Imm, int64_t Address,
358 return decodeUImmLog2XLenOperand(Inst, Imm, Address, Decoder);
362 static DecodeStatus decodeSImmOperand(MCInst &Inst, uint32_t Imm,
367 Inst.addOperand(MCOperand::createImm(SignExtend64<N>(Imm)));
372 static DecodeStatus decodeSImmNonZeroOperand(MCInst &Inst, uint32_t Imm,
377 return decodeSImmOperand<N>(Inst, Imm, Address, Decoder);
381 static DecodeStatus decodeSImmOperandAndLsl1(MCInst &Inst, uint32_t Imm,
388 Inst.addOperand(MCOperand::createImm(SignExtend64<N>(Imm << 1)));
392 static DecodeStatus decodeCLUIImmOperand(MCInst &Inst, uint32_t Imm,
399 Inst.addOperand(MCOperand::createImm(Imm));
403 static DecodeStatus decodeFRMArg(MCInst &Inst, uint32_t Imm, int64_t Address,
409 Inst.addOperand(MCOperand::createImm(Imm));
413 static DecodeStatus decodeRTZArg(MCInst &Inst, uint32_t Imm, int64_t Address,
419 Inst.addOperand(MCOperand::createImm(Imm));
423 static DecodeStatus decodeRVCInstrRdRs1ImmZero(MCInst &Inst, uint32_t Insn,
427 static DecodeStatus decodeRVCInstrRdSImm(MCInst &Inst, uint32_t Insn,
431 static DecodeStatus decodeRVCInstrRdRs1UImm(MCInst &Inst, uint32_t Insn,
435 static DecodeStatus decodeRVCInstrRdRs2(MCInst &Inst, uint32_t Insn,
439 static DecodeStatus decodeRVCInstrRdRs1Rs2(MCInst &Inst, uint32_t Insn,
443 static DecodeStatus decodeXTHeadMemPair(MCInst &Inst, uint32_t Insn,
447 static DecodeStatus decodeZcmpRlist(MCInst &Inst, uint32_t Imm,
450 static DecodeStatus decodeRegReg(MCInst &Inst, uint32_t Insn, uint64_t Address,
453 static DecodeStatus decodeZcmpSpimm(MCInst &Inst, uint32_t Imm,
456 static DecodeStatus decodeCSSPushPopchk(MCInst &Inst, uint32_t Insn,
462 static DecodeStatus decodeRVCInstrRdRs1ImmZero(MCInst &Inst, uint32_t Insn,
467 DecodeGPRNoX0RegisterClass(Inst, Rd, Address, Decoder);
469 Inst.addOperand(Inst.getOperand(0));
470 Inst.addOperand(MCOperand::createImm(0));
474 static DecodeStatus decodeCSSPushPopchk(MCInst &Inst, uint32_t Insn,
479 DecodeGPRX1X5RegisterClass(Inst, Rs1, Address, Decoder);
484 static DecodeStatus decodeRVCInstrRdSImm(MCInst &Inst, uint32_t Insn,
487 Inst.addOperand(MCOperand::createReg(RISCV::X0));
491 decodeSImmOperand<6>(Inst, SImm6, Address, Decoder);
496 static DecodeStatus decodeRVCInstrRdRs1UImm(MCInst &Inst, uint32_t Insn,
499 Inst.addOperand(MCOperand::createReg(RISCV::X0));
500 Inst.addOperand(Inst.getOperand(0));
504 decodeUImmOperand<6>(Inst, UImm6, Address, Decoder);
509 static DecodeStatus decodeRVCInstrRdRs2(MCInst &Inst, uint32_t Insn,
514 DecodeGPRRegisterClass(Inst, Rd, Address, Decoder);
515 DecodeGPRRegisterClass(Inst, Rs2, Address, Decoder);
519 static DecodeStatus decodeRVCInstrRdRs1Rs2(MCInst &Inst, uint32_t Insn,
524 DecodeGPRRegisterClass(Inst, Rd, Address, Decoder);
525 Inst.addOperand(Inst.getOperand(0));
526 DecodeGPRRegisterClass(Inst, Rs2, Address, Decoder);
530 static DecodeStatus decodeXTHeadMemPair(MCInst &Inst, uint32_t Insn,
537 DecodeGPRRegisterClass(Inst, Rd1, Address, Decoder);
538 DecodeGPRRegisterClass(Inst, Rd2, Address, Decoder);
539 DecodeGPRRegisterClass(Inst, Rs1, Address, Decoder);
541 decodeUImmOperand<2>(Inst, UImm2, Address, Decoder);
545 unsigned Opcode = Inst.getOpcode();
549 Inst.addOperand(MCOperand::createImm(3));
551 Inst.addOperand(MCOperand::createImm(4));
556 static DecodeStatus decodeZcmpRlist(MCInst &Inst, uint32_t Imm,
560 Inst.addOperand(MCOperand::createImm(Imm));
564 static DecodeStatus decodeRegReg(MCInst &Inst, uint32_t Insn, uint64_t Address,
568 DecodeGPRRegisterClass(Inst, Rs1, Address, Decoder);
569 DecodeGPRRegisterClass(Inst, Rs2, Address, Decoder);
573 static DecodeStatus decodeZcmpSpimm(MCInst &Inst, uint32_t Imm,
575 Inst.addOperand(MCOperand::createImm(Imm));