Lines Matching refs:Insn
51 uint64_t &Size, uint32_t &Insn) { in readInstruction32() argument
54 Insn = in readInstruction32()
60 uint64_t &Size, uint64_t &Insn) { in readInstruction64() argument
62 Insn = ((uint64_t)Bytes[0] << 16) | ((uint64_t)Bytes[1] << 24) | in readInstruction64()
70 uint64_t &Size, uint64_t &Insn) { in readInstruction48() argument
72 Insn = ((uint64_t)Bytes[0] << 0) | ((uint64_t)Bytes[1] << 8) | in readInstruction48()
79 uint64_t &Size, uint32_t &Insn) { in readInstruction16() argument
81 Insn = (Bytes[0] << 0) | (Bytes[1] << 8); in readInstruction16()
156 static unsigned decodeCField(unsigned Insn) { in decodeCField() argument
157 return fieldFromInstruction(Insn, 6, 6); in decodeCField()
160 static unsigned decodeBField(unsigned Insn) { in decodeBField() argument
161 return (fieldFromInstruction(Insn, 12, 3) << 3) | in decodeBField()
162 fieldFromInstruction(Insn, 24, 3); in decodeBField()
165 static unsigned decodeAField(unsigned Insn) { in decodeAField() argument
166 return fieldFromInstruction(Insn, 0, 6); in decodeAField()
169 static DecodeStatus DecodeMEMrs9(MCInst &Inst, unsigned Insn, uint64_t Address, in DecodeMEMrs9() argument
172 unsigned S9 = Insn & 0x1ff; in DecodeMEMrs9()
173 unsigned R = (Insn & (0x7fff & ~0x1ff)) >> 9; in DecodeMEMrs9()
229 static DecodeStatus DecodeStLImmInstruction(MCInst &Inst, uint64_t Insn, in DecodeStLImmInstruction() argument
233 DstB = decodeBField(Insn); in DecodeStLImmInstruction()
238 SrcC = decodeCField(Insn); in DecodeStLImmInstruction()
240 LImm = (Insn >> 32); in DecodeStLImmInstruction()
246 static DecodeStatus DecodeLdLImmInstruction(MCInst &Inst, uint64_t Insn, in DecodeLdLImmInstruction() argument
251 SrcB = decodeBField(Insn); in DecodeLdLImmInstruction()
256 DstA = decodeAField(Insn); in DecodeLdLImmInstruction()
258 LImm = (Insn >> 32); in DecodeLdLImmInstruction()
264 static DecodeStatus DecodeLdRLImmInstruction(MCInst &Inst, uint64_t Insn, in DecodeLdRLImmInstruction() argument
269 DstA = decodeAField(Insn); in DecodeLdRLImmInstruction()
271 SrcB = decodeBField(Insn); in DecodeLdRLImmInstruction()
273 if (decodeCField(Insn) != 62) { in DecodeLdRLImmInstruction()
277 Inst.addOperand(MCOperand::createImm((uint32_t)(Insn >> 32))); in DecodeLdRLImmInstruction()
281 static DecodeStatus DecodeMoveHRegInstruction(MCInst &Inst, uint64_t Insn, in DecodeMoveHRegInstruction() argument
285 using Field = decltype(Insn); in DecodeMoveHRegInstruction()
286 Field H = fieldFromInstruction(Insn, 5, 3) | in DecodeMoveHRegInstruction()
287 (fieldFromInstruction(Insn, 0, 2) << 3); in DecodeMoveHRegInstruction()
288 Field G = fieldFromInstruction(Insn, 8, 3) | in DecodeMoveHRegInstruction()
289 (fieldFromInstruction(Insn, 3, 2) << 3); in DecodeMoveHRegInstruction()
304 return DecodeRegisterOrImm(H, Insn >> 16u); in DecodeMoveHRegInstruction()
307 static DecodeStatus DecodeCCRU6Instruction(MCInst &Inst, uint64_t Insn, in DecodeCCRU6Instruction() argument
312 DstB = decodeBField(Insn); in DecodeCCRU6Instruction()
314 using Field = decltype(Insn); in DecodeCCRU6Instruction()
315 Field U6Field = fieldFromInstruction(Insn, 6, 6); in DecodeCCRU6Instruction()
317 Field CCField = fieldFromInstruction(Insn, 0, 4); in DecodeCCRU6Instruction()
322 static DecodeStatus DecodeSOPwithRU6(MCInst &Inst, uint64_t Insn, in DecodeSOPwithRU6() argument
325 unsigned DstB = decodeBField(Insn); in DecodeSOPwithRU6()
327 using Field = decltype(Insn); in DecodeSOPwithRU6()
328 Field U6 = fieldFromInstruction(Insn, 6, 6); in DecodeSOPwithRU6()
333 static DecodeStatus DecodeSOPwithRS12(MCInst &Inst, uint64_t Insn, in DecodeSOPwithRS12() argument
336 unsigned DstB = decodeBField(Insn); in DecodeSOPwithRS12()
338 using Field = decltype(Insn); in DecodeSOPwithRS12()
339 Field Lower = fieldFromInstruction(Insn, 6, 6); in DecodeSOPwithRS12()
340 Field Upper = fieldFromInstruction(Insn, 0, 5); in DecodeSOPwithRS12()
341 Field Sign = fieldFromInstruction(Insn, 5, 1) ? -1 : 1; in DecodeSOPwithRS12()