Lines Matching refs:Inst

67 static DecodeStatus DecodeGPR8RegisterClass(MCInst &Inst, unsigned RegNo,  in DecodeGPR8RegisterClass()  argument
74 Inst.addOperand(MCOperand::createReg(Register)); in DecodeGPR8RegisterClass()
78 static DecodeStatus DecodeLD8RegisterClass(MCInst &Inst, unsigned RegNo, in DecodeLD8RegisterClass() argument
85 Inst.addOperand(MCOperand::createReg(Register)); in DecodeLD8RegisterClass()
89 static DecodeStatus decodeFIOARr(MCInst &Inst, unsigned Insn, uint64_t Address,
92 static DecodeStatus decodeFIORdA(MCInst &Inst, unsigned Insn, uint64_t Address,
95 static DecodeStatus decodeFIOBIT(MCInst &Inst, unsigned Insn, uint64_t Address,
98 static DecodeStatus decodeCallTarget(MCInst &Inst, unsigned Insn,
102 static DecodeStatus decodeFRd(MCInst &Inst, unsigned Insn, uint64_t Address,
105 static DecodeStatus decodeFLPMX(MCInst &Inst, unsigned Insn, uint64_t Address,
108 static DecodeStatus decodeFFMULRdRr(MCInst &Inst, unsigned Insn,
112 static DecodeStatus decodeFMOVWRdRr(MCInst &Inst, unsigned Insn,
116 static DecodeStatus decodeFWRdK(MCInst &Inst, unsigned Insn, uint64_t Address,
119 static DecodeStatus decodeFMUL2RdRr(MCInst &Inst, unsigned Insn,
123 static DecodeStatus decodeMemri(MCInst &Inst, unsigned Insn, uint64_t Address,
126 static DecodeStatus decodeLoadStore(MCInst &Inst, unsigned Insn,
132 static DecodeStatus decodeFIOARr(MCInst &Inst, unsigned Insn, uint64_t Address, in decodeFIOARr() argument
138 Inst.addOperand(MCOperand::createImm(addr)); in decodeFIOARr()
139 if (DecodeGPR8RegisterClass(Inst, reg, Address, Decoder) == in decodeFIOARr()
145 static DecodeStatus decodeFIORdA(MCInst &Inst, unsigned Insn, uint64_t Address, in decodeFIORdA() argument
151 if (DecodeGPR8RegisterClass(Inst, reg, Address, Decoder) == in decodeFIORdA()
154 Inst.addOperand(MCOperand::createImm(addr)); in decodeFIORdA()
158 static DecodeStatus decodeFIOBIT(MCInst &Inst, unsigned Insn, uint64_t Address, in decodeFIOBIT() argument
162 Inst.addOperand(MCOperand::createImm(addr)); in decodeFIOBIT()
163 Inst.addOperand(MCOperand::createImm(b)); in decodeFIOBIT()
167 static DecodeStatus decodeCallTarget(MCInst &Inst, unsigned Field, in decodeCallTarget() argument
172 Inst.addOperand(MCOperand::createImm(Field << 1)); in decodeCallTarget()
176 static DecodeStatus decodeFRd(MCInst &Inst, unsigned Insn, uint64_t Address, in decodeFRd() argument
179 if (DecodeGPR8RegisterClass(Inst, d, Address, Decoder) == in decodeFRd()
185 static DecodeStatus decodeFLPMX(MCInst &Inst, unsigned Insn, uint64_t Address, in decodeFLPMX() argument
187 if (decodeFRd(Inst, Insn, Address, Decoder) == MCDisassembler::Fail) in decodeFLPMX()
189 Inst.addOperand(MCOperand::createReg(AVR::R31R30)); in decodeFLPMX()
193 static DecodeStatus decodeFFMULRdRr(MCInst &Inst, unsigned Insn, in decodeFFMULRdRr() argument
198 if (DecodeGPR8RegisterClass(Inst, d, Address, Decoder) == in decodeFFMULRdRr()
201 if (DecodeGPR8RegisterClass(Inst, r, Address, Decoder) == in decodeFFMULRdRr()
207 static DecodeStatus decodeFMOVWRdRr(MCInst &Inst, unsigned Insn, in decodeFMOVWRdRr() argument
212 if (DecodeGPR8RegisterClass(Inst, r, Address, Decoder) == in decodeFMOVWRdRr()
215 if (DecodeGPR8RegisterClass(Inst, d, Address, Decoder) == in decodeFMOVWRdRr()
221 static DecodeStatus decodeFWRdK(MCInst &Inst, unsigned Insn, uint64_t Address, in decodeFWRdK() argument
227 if (DecodeGPR8RegisterClass(Inst, d, Address, Decoder) == in decodeFWRdK()
230 if (DecodeGPR8RegisterClass(Inst, d, Address, Decoder) == in decodeFWRdK()
233 Inst.addOperand(MCOperand::createImm(k)); in decodeFWRdK()
237 static DecodeStatus decodeFMUL2RdRr(MCInst &Inst, unsigned Insn, in decodeFMUL2RdRr() argument
242 if (DecodeGPR8RegisterClass(Inst, rd, Address, Decoder) == in decodeFMUL2RdRr()
245 if (DecodeGPR8RegisterClass(Inst, rr, Address, Decoder) == in decodeFMUL2RdRr()
251 static DecodeStatus decodeMemri(MCInst &Inst, unsigned Insn, uint64_t Address, in decodeMemri() argument
260 Inst.addOperand( in decodeMemri()
263 Inst.addOperand(MCOperand::createImm(Insn & 0x3f)); in decodeMemri()
268 static DecodeStatus decodeLoadStore(MCInst &Inst, unsigned Insn, in decodeLoadStore() argument
279 Inst.setOpcode(AVR::LDDRdPtrQ); in decodeLoadStore()
280 Inst.addOperand(MCOperand::createReg(RegVal)); in decodeLoadStore()
281 Inst.addOperand(MCOperand::createReg(RegBase)); in decodeLoadStore()
282 Inst.addOperand(MCOperand::createImm(Offset)); in decodeLoadStore()
284 Inst.setOpcode(AVR::STDPtrQRr); in decodeLoadStore()
285 Inst.addOperand(MCOperand::createReg(RegBase)); in decodeLoadStore()
286 Inst.addOperand(MCOperand::createImm(Offset)); in decodeLoadStore()
287 Inst.addOperand(MCOperand::createReg(RegVal)); in decodeLoadStore()
332 Inst.setOpcode(AVR::STPtrRr); in decodeLoadStore()
333 Inst.addOperand(MCOperand::createReg(RegBase)); in decodeLoadStore()
334 Inst.addOperand(MCOperand::createReg(RegVal)); in decodeLoadStore()
337 Inst.setOpcode(AVR::STPtrPiRr); in decodeLoadStore()
340 Inst.setOpcode(AVR::STPtrPdRr); in decodeLoadStore()
343 Inst.setOpcode(AVR::LDRdPtr); in decodeLoadStore()
344 Inst.addOperand(MCOperand::createReg(RegVal)); in decodeLoadStore()
345 Inst.addOperand(MCOperand::createReg(RegBase)); in decodeLoadStore()
348 Inst.setOpcode(AVR::LDRdPtrPi); in decodeLoadStore()
351 Inst.setOpcode(AVR::LDRdPtrPd); in decodeLoadStore()
359 Inst.addOperand(MCOperand::createReg(RegVal)); in decodeLoadStore()
360 Inst.addOperand(MCOperand::createReg(RegBase)); in decodeLoadStore()
361 Inst.addOperand(MCOperand::createReg(RegBase)); in decodeLoadStore()
363 Inst.addOperand(MCOperand::createReg(RegBase)); in decodeLoadStore()
364 Inst.addOperand(MCOperand::createReg(RegBase)); in decodeLoadStore()
365 Inst.addOperand(MCOperand::createReg(RegVal)); in decodeLoadStore()
367 Inst.addOperand(MCOperand::createImm(1)); in decodeLoadStore()