Lines Matching refs:Inst
70 static DecodeStatus DecodeGPR8RegisterClass(MCInst &Inst, unsigned RegNo, in DecodeGPR8RegisterClass() argument
77 Inst.addOperand(MCOperand::createReg(Register)); in DecodeGPR8RegisterClass()
81 static DecodeStatus DecodeLD8RegisterClass(MCInst &Inst, unsigned RegNo, in DecodeLD8RegisterClass() argument
88 Inst.addOperand(MCOperand::createReg(Register)); in DecodeLD8RegisterClass()
92 static DecodeStatus decodeFIOARr(MCInst &Inst, unsigned Insn, uint64_t Address,
95 static DecodeStatus decodeFIORdA(MCInst &Inst, unsigned Insn, uint64_t Address,
98 static DecodeStatus decodeFIOBIT(MCInst &Inst, unsigned Insn, uint64_t Address,
101 static DecodeStatus decodeCallTarget(MCInst &Inst, unsigned Insn,
105 static DecodeStatus decodeFRd(MCInst &Inst, unsigned Insn, uint64_t Address,
108 static DecodeStatus decodeFLPMX(MCInst &Inst, unsigned Insn, uint64_t Address,
111 static DecodeStatus decodeFFMULRdRr(MCInst &Inst, unsigned Insn,
115 static DecodeStatus decodeFMOVWRdRr(MCInst &Inst, unsigned Insn,
119 static DecodeStatus decodeFWRdK(MCInst &Inst, unsigned Insn, uint64_t Address,
122 static DecodeStatus decodeFMUL2RdRr(MCInst &Inst, unsigned Insn,
126 static DecodeStatus decodeMemri(MCInst &Inst, unsigned Insn, uint64_t Address,
129 static DecodeStatus decodeFBRk(MCInst &Inst, unsigned Insn, uint64_t Address,
132 static DecodeStatus decodeCondBranch(MCInst &Inst, unsigned Insn,
136 static DecodeStatus decodeLoadStore(MCInst &Inst, unsigned Insn,
142 static DecodeStatus decodeFIOARr(MCInst &Inst, unsigned Insn, uint64_t Address, in decodeFIOARr() argument
148 Inst.addOperand(MCOperand::createImm(addr)); in decodeFIOARr()
149 if (DecodeGPR8RegisterClass(Inst, reg, Address, Decoder) == in decodeFIOARr()
155 static DecodeStatus decodeFIORdA(MCInst &Inst, unsigned Insn, uint64_t Address, in decodeFIORdA() argument
161 if (DecodeGPR8RegisterClass(Inst, reg, Address, Decoder) == in decodeFIORdA()
164 Inst.addOperand(MCOperand::createImm(addr)); in decodeFIORdA()
168 static DecodeStatus decodeFIOBIT(MCInst &Inst, unsigned Insn, uint64_t Address, in decodeFIOBIT() argument
172 Inst.addOperand(MCOperand::createImm(addr)); in decodeFIOBIT()
173 Inst.addOperand(MCOperand::createImm(b)); in decodeFIOBIT()
177 static DecodeStatus decodeCallTarget(MCInst &Inst, unsigned Field, in decodeCallTarget() argument
182 Inst.addOperand(MCOperand::createImm(Field << 1)); in decodeCallTarget()
186 static DecodeStatus decodeFRd(MCInst &Inst, unsigned Insn, uint64_t Address, in decodeFRd() argument
189 if (DecodeGPR8RegisterClass(Inst, d, Address, Decoder) == in decodeFRd()
195 static DecodeStatus decodeFLPMX(MCInst &Inst, unsigned Insn, uint64_t Address, in decodeFLPMX() argument
197 if (decodeFRd(Inst, Insn, Address, Decoder) == MCDisassembler::Fail) in decodeFLPMX()
199 Inst.addOperand(MCOperand::createReg(AVR::R31R30)); in decodeFLPMX()
203 static DecodeStatus decodeFFMULRdRr(MCInst &Inst, unsigned Insn, in decodeFFMULRdRr() argument
208 if (DecodeGPR8RegisterClass(Inst, d, Address, Decoder) == in decodeFFMULRdRr()
211 if (DecodeGPR8RegisterClass(Inst, r, Address, Decoder) == in decodeFFMULRdRr()
217 static DecodeStatus decodeFMOVWRdRr(MCInst &Inst, unsigned Insn, in decodeFMOVWRdRr() argument
222 if (DecodeGPR8RegisterClass(Inst, r, Address, Decoder) == in decodeFMOVWRdRr()
225 if (DecodeGPR8RegisterClass(Inst, d, Address, Decoder) == in decodeFMOVWRdRr()
231 static DecodeStatus decodeFWRdK(MCInst &Inst, unsigned Insn, uint64_t Address, in decodeFWRdK() argument
237 if (DecodeGPR8RegisterClass(Inst, d, Address, Decoder) == in decodeFWRdK()
240 if (DecodeGPR8RegisterClass(Inst, d, Address, Decoder) == in decodeFWRdK()
243 Inst.addOperand(MCOperand::createImm(k)); in decodeFWRdK()
247 static DecodeStatus decodeFMUL2RdRr(MCInst &Inst, unsigned Insn, in decodeFMUL2RdRr() argument
252 if (DecodeGPR8RegisterClass(Inst, rd, Address, Decoder) == in decodeFMUL2RdRr()
255 if (DecodeGPR8RegisterClass(Inst, rr, Address, Decoder) == in decodeFMUL2RdRr()
261 static DecodeStatus decodeMemri(MCInst &Inst, unsigned Insn, uint64_t Address, in decodeMemri() argument
270 Inst.addOperand( in decodeMemri()
273 Inst.addOperand(MCOperand::createImm(Insn & 0x3f)); in decodeMemri()
278 static DecodeStatus decodeFBRk(MCInst &Inst, unsigned Insn, uint64_t Address, in decodeFBRk() argument
283 Inst.setOpcode(AVR::RJMPk); in decodeFBRk()
286 Inst.setOpcode(AVR::RCALLk); in decodeFBRk()
293 Inst.addOperand(MCOperand::createImm(Offset)); in decodeFBRk()
297 static DecodeStatus decodeCondBranch(MCInst &Inst, unsigned Insn, in decodeCondBranch() argument
319 Inst.setOpcode(It->second); in decodeCondBranch()
320 Inst.addOperand(MCOperand::createImm(Offset)); in decodeCondBranch()
323 Inst.setOpcode(Insn & 0x400 ? AVR::BRBCsk : AVR::BRBSsk); in decodeCondBranch()
324 Inst.addOperand(MCOperand::createImm(Insn & 7)); in decodeCondBranch()
325 Inst.addOperand(MCOperand::createImm(Offset)); in decodeCondBranch()
331 static DecodeStatus decodeLoadStore(MCInst &Inst, unsigned Insn, in decodeLoadStore() argument
342 Inst.setOpcode(AVR::LDDRdPtrQ); in decodeLoadStore()
343 Inst.addOperand(MCOperand::createReg(RegVal)); in decodeLoadStore()
344 Inst.addOperand(MCOperand::createReg(RegBase)); in decodeLoadStore()
345 Inst.addOperand(MCOperand::createImm(Offset)); in decodeLoadStore()
347 Inst.setOpcode(AVR::STDPtrQRr); in decodeLoadStore()
348 Inst.addOperand(MCOperand::createReg(RegBase)); in decodeLoadStore()
349 Inst.addOperand(MCOperand::createImm(Offset)); in decodeLoadStore()
350 Inst.addOperand(MCOperand::createReg(RegVal)); in decodeLoadStore()
395 Inst.setOpcode(AVR::STPtrRr); in decodeLoadStore()
396 Inst.addOperand(MCOperand::createReg(RegBase)); in decodeLoadStore()
397 Inst.addOperand(MCOperand::createReg(RegVal)); in decodeLoadStore()
400 Inst.setOpcode(AVR::STPtrPiRr); in decodeLoadStore()
403 Inst.setOpcode(AVR::STPtrPdRr); in decodeLoadStore()
406 Inst.setOpcode(AVR::LDRdPtr); in decodeLoadStore()
407 Inst.addOperand(MCOperand::createReg(RegVal)); in decodeLoadStore()
408 Inst.addOperand(MCOperand::createReg(RegBase)); in decodeLoadStore()
411 Inst.setOpcode(AVR::LDRdPtrPi); in decodeLoadStore()
414 Inst.setOpcode(AVR::LDRdPtrPd); in decodeLoadStore()
422 Inst.addOperand(MCOperand::createReg(RegVal)); in decodeLoadStore()
423 Inst.addOperand(MCOperand::createReg(RegBase)); in decodeLoadStore()
424 Inst.addOperand(MCOperand::createReg(RegBase)); in decodeLoadStore()
426 Inst.addOperand(MCOperand::createReg(RegBase)); in decodeLoadStore()
427 Inst.addOperand(MCOperand::createReg(RegBase)); in decodeLoadStore()
428 Inst.addOperand(MCOperand::createReg(RegVal)); in decodeLoadStore()
430 Inst.addOperand(MCOperand::createImm(1)); in decodeLoadStore()