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()
148 static unsigned decodeCField(unsigned Insn) { in decodeCField() argument
149 return fieldFromInstruction(Insn, 6, 6); in decodeCField()
152 static unsigned decodeBField(unsigned Insn) { in decodeBField() argument
153 return (fieldFromInstruction(Insn, 12, 3) << 3) | in decodeBField()
154 fieldFromInstruction(Insn, 24, 3); in decodeBField()
157 static unsigned decodeAField(unsigned Insn) { in decodeAField() argument
158 return fieldFromInstruction(Insn, 0, 6); in decodeAField()
161 static DecodeStatus DecodeMEMrs9(MCInst &Inst, unsigned Insn, uint64_t Address, in DecodeMEMrs9() argument
164 unsigned S9 = Insn & 0x1ff; in DecodeMEMrs9()
165 unsigned R = (Insn & (0x7fff & ~0x1ff)) >> 9; in DecodeMEMrs9()
221 static DecodeStatus DecodeStLImmInstruction(MCInst &Inst, uint64_t Insn, in DecodeStLImmInstruction() argument
225 DstB = decodeBField(Insn); in DecodeStLImmInstruction()
230 SrcC = decodeCField(Insn); in DecodeStLImmInstruction()
232 LImm = (Insn >> 32); in DecodeStLImmInstruction()
238 static DecodeStatus DecodeLdLImmInstruction(MCInst &Inst, uint64_t Insn, in DecodeLdLImmInstruction() argument
243 SrcB = decodeBField(Insn); in DecodeLdLImmInstruction()
248 DstA = decodeAField(Insn); in DecodeLdLImmInstruction()
250 LImm = (Insn >> 32); in DecodeLdLImmInstruction()
256 static DecodeStatus DecodeLdRLImmInstruction(MCInst &Inst, uint64_t Insn, in DecodeLdRLImmInstruction() argument
261 DstA = decodeAField(Insn); in DecodeLdRLImmInstruction()
263 SrcB = decodeBField(Insn); in DecodeLdRLImmInstruction()
265 if (decodeCField(Insn) != 62) { in DecodeLdRLImmInstruction()
269 Inst.addOperand(MCOperand::createImm((uint32_t)(Insn >> 32))); in DecodeLdRLImmInstruction()
273 static DecodeStatus DecodeMoveHRegInstruction(MCInst &Inst, uint64_t Insn, in DecodeMoveHRegInstruction() argument
277 using Field = decltype(Insn); in DecodeMoveHRegInstruction()
278 Field H = fieldFromInstruction(Insn, 5, 3) | in DecodeMoveHRegInstruction()
279 (fieldFromInstruction(Insn, 0, 2) << 3); in DecodeMoveHRegInstruction()
280 Field G = fieldFromInstruction(Insn, 8, 3) | in DecodeMoveHRegInstruction()
281 (fieldFromInstruction(Insn, 3, 2) << 3); in DecodeMoveHRegInstruction()
296 return DecodeRegisterOrImm(H, Insn >> 16u); in DecodeMoveHRegInstruction()
299 static DecodeStatus DecodeCCRU6Instruction(MCInst &Inst, uint64_t Insn, in DecodeCCRU6Instruction() argument
304 DstB = decodeBField(Insn); in DecodeCCRU6Instruction()
306 using Field = decltype(Insn); in DecodeCCRU6Instruction()
307 Field U6Field = fieldFromInstruction(Insn, 6, 11); in DecodeCCRU6Instruction()
309 Field CCField = fieldFromInstruction(Insn, 0, 4); in DecodeCCRU6Instruction()