Lines Matching refs:Inst

61 static DecodeStatus DecodeGPRRegisterClass(MCInst &Inst, uint64_t RegNo,  in DecodeGPRRegisterClass()  argument
72 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeGPRRegisterClass()
76 static DecodeStatus DecodeFPR16RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeFPR16RegisterClass() argument
83 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeFPR16RegisterClass()
87 static DecodeStatus DecodeFPR32RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeFPR32RegisterClass() argument
94 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeFPR32RegisterClass()
98 static DecodeStatus DecodeFPR32CRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeFPR32CRegisterClass() argument
105 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeFPR32CRegisterClass()
109 static DecodeStatus DecodeFPR64RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeFPR64RegisterClass() argument
116 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeFPR64RegisterClass()
120 static DecodeStatus DecodeFPR64CRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeFPR64CRegisterClass() argument
127 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeFPR64CRegisterClass()
131 static DecodeStatus DecodeGPRNoX0RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeGPRNoX0RegisterClass() argument
138 return DecodeGPRRegisterClass(Inst, RegNo, Address, Decoder); in DecodeGPRNoX0RegisterClass()
142 DecodeGPRNoX0X2RegisterClass(MCInst &Inst, uint64_t RegNo, uint64_t Address, in DecodeGPRNoX0X2RegisterClass() argument
148 return DecodeGPRNoX0RegisterClass(Inst, RegNo, Address, Decoder); in DecodeGPRNoX0X2RegisterClass()
151 static DecodeStatus DecodeGPRCRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeGPRCRegisterClass() argument
158 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeGPRCRegisterClass()
162 static DecodeStatus DecodeGPRPF64RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeGPRPF64RegisterClass() argument
169 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeGPRPF64RegisterClass()
173 static DecodeStatus DecodeVRRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeVRRegisterClass() argument
180 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeVRRegisterClass()
184 static DecodeStatus DecodeVRM2RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeVRM2RegisterClass() argument
200 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeVRM2RegisterClass()
204 static DecodeStatus DecodeVRM4RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeVRM4RegisterClass() argument
220 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeVRM4RegisterClass()
224 static DecodeStatus DecodeVRM8RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeVRM8RegisterClass() argument
240 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeVRM8RegisterClass()
244 static DecodeStatus decodeVMaskReg(MCInst &Inst, uint64_t RegNo, in decodeVMaskReg() argument
257 Inst.addOperand(MCOperand::createReg(Reg)); in decodeVMaskReg()
263 static void addImplySP(MCInst &Inst, int64_t Address, in addImplySP() argument
265 if (Inst.getOpcode() == RISCV::C_LWSP || Inst.getOpcode() == RISCV::C_SWSP || in addImplySP()
266 Inst.getOpcode() == RISCV::C_LDSP || Inst.getOpcode() == RISCV::C_SDSP || in addImplySP()
267 Inst.getOpcode() == RISCV::C_FLWSP || in addImplySP()
268 Inst.getOpcode() == RISCV::C_FSWSP || in addImplySP()
269 Inst.getOpcode() == RISCV::C_FLDSP || in addImplySP()
270 Inst.getOpcode() == RISCV::C_FSDSP || in addImplySP()
271 Inst.getOpcode() == RISCV::C_ADDI4SPN) { in addImplySP()
272 DecodeGPRRegisterClass(Inst, 2, Address, Decoder); in addImplySP()
274 if (Inst.getOpcode() == RISCV::C_ADDI16SP) { in addImplySP()
275 DecodeGPRRegisterClass(Inst, 2, Address, Decoder); in addImplySP()
276 DecodeGPRRegisterClass(Inst, 2, Address, Decoder); in addImplySP()
281 static DecodeStatus decodeUImmOperand(MCInst &Inst, uint64_t Imm, in decodeUImmOperand() argument
285 addImplySP(Inst, Address, Decoder); in decodeUImmOperand()
286 Inst.addOperand(MCOperand::createImm(Imm)); in decodeUImmOperand()
291 static DecodeStatus decodeUImmNonZeroOperand(MCInst &Inst, uint64_t Imm, in decodeUImmNonZeroOperand() argument
296 return decodeUImmOperand<N>(Inst, Imm, Address, Decoder); in decodeUImmNonZeroOperand()
300 static DecodeStatus decodeSImmOperand(MCInst &Inst, uint64_t Imm, in decodeSImmOperand() argument
304 addImplySP(Inst, Address, Decoder); in decodeSImmOperand()
306 Inst.addOperand(MCOperand::createImm(SignExtend64<N>(Imm))); in decodeSImmOperand()
311 static DecodeStatus decodeSImmNonZeroOperand(MCInst &Inst, uint64_t Imm, in decodeSImmNonZeroOperand() argument
316 return decodeSImmOperand<N>(Inst, Imm, Address, Decoder); in decodeSImmNonZeroOperand()
320 static DecodeStatus decodeSImmOperandAndLsl1(MCInst &Inst, uint64_t Imm, in decodeSImmOperandAndLsl1() argument
327 Inst.addOperand(MCOperand::createImm(SignExtend64<N>(Imm << 1))); in decodeSImmOperandAndLsl1()
331 static DecodeStatus decodeCLUIImmOperand(MCInst &Inst, uint64_t Imm, in decodeCLUIImmOperand() argument
338 Inst.addOperand(MCOperand::createImm(Imm)); in decodeCLUIImmOperand()
342 static DecodeStatus decodeFRMArg(MCInst &Inst, uint64_t Imm, int64_t Address, in decodeFRMArg() argument
348 Inst.addOperand(MCOperand::createImm(Imm)); in decodeFRMArg()
352 static DecodeStatus decodeRVCInstrSImm(MCInst &Inst, unsigned Insn,
356 static DecodeStatus decodeRVCInstrRdSImm(MCInst &Inst, unsigned Insn,
360 static DecodeStatus decodeRVCInstrRdRs1UImm(MCInst &Inst, unsigned Insn,
364 static DecodeStatus decodeRVCInstrRdRs2(MCInst &Inst, unsigned Insn,
368 static DecodeStatus decodeRVCInstrRdRs1Rs2(MCInst &Inst, unsigned Insn,
374 static DecodeStatus decodeRVCInstrSImm(MCInst &Inst, unsigned Insn, in decodeRVCInstrSImm() argument
379 DecodeStatus Result = decodeSImmOperand<6>(Inst, SImm6, Address, Decoder); in decodeRVCInstrSImm()
385 static DecodeStatus decodeRVCInstrRdSImm(MCInst &Inst, unsigned Insn, in decodeRVCInstrRdSImm() argument
388 DecodeGPRRegisterClass(Inst, 0, Address, Decoder); in decodeRVCInstrRdSImm()
391 DecodeStatus Result = decodeSImmOperand<6>(Inst, SImm6, Address, Decoder); in decodeRVCInstrRdSImm()
397 static DecodeStatus decodeRVCInstrRdRs1UImm(MCInst &Inst, unsigned Insn, in decodeRVCInstrRdRs1UImm() argument
400 DecodeGPRRegisterClass(Inst, 0, Address, Decoder); in decodeRVCInstrRdRs1UImm()
401 Inst.addOperand(Inst.getOperand(0)); in decodeRVCInstrRdRs1UImm()
404 DecodeStatus Result = decodeUImmOperand<6>(Inst, UImm6, Address, Decoder); in decodeRVCInstrRdRs1UImm()
410 static DecodeStatus decodeRVCInstrRdRs2(MCInst &Inst, unsigned Insn, in decodeRVCInstrRdRs2() argument
415 DecodeGPRRegisterClass(Inst, Rd, Address, Decoder); in decodeRVCInstrRdRs2()
416 DecodeGPRRegisterClass(Inst, Rs2, Address, Decoder); in decodeRVCInstrRdRs2()
420 static DecodeStatus decodeRVCInstrRdRs1Rs2(MCInst &Inst, unsigned Insn, in decodeRVCInstrRdRs1Rs2() argument
425 DecodeGPRRegisterClass(Inst, Rd, Address, Decoder); in decodeRVCInstrRdRs1Rs2()
426 Inst.addOperand(Inst.getOperand(0)); in decodeRVCInstrRdRs1Rs2()
427 DecodeGPRRegisterClass(Inst, Rs2, Address, Decoder); in decodeRVCInstrRdRs1Rs2()