Lines Matching refs:Inst

64 static DecodeStatus DecodePCRel24BranchTarget(MCInst &Inst, unsigned Imm,  in DecodePCRel24BranchTarget()  argument
68 Inst.addOperand(MCOperand::createImm(Offset)); in DecodePCRel24BranchTarget()
76 static DecodeStatus decodeRegisterClass(MCInst &Inst, uint64_t RegNo, in decodeRegisterClass() argument
79 Inst.addOperand(MCOperand::createReg(Regs[RegNo])); in decodeRegisterClass()
83 static DecodeStatus DecodeCRRCRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeCRRCRegisterClass() argument
86 return decodeRegisterClass(Inst, RegNo, CRRegs); in DecodeCRRCRegisterClass()
89 static DecodeStatus DecodeCRRC0RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeCRRC0RegisterClass() argument
92 return decodeRegisterClass(Inst, RegNo, CRRegs); in DecodeCRRC0RegisterClass()
95 static DecodeStatus DecodeCRBITRCRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeCRBITRCRegisterClass() argument
98 return decodeRegisterClass(Inst, RegNo, CRBITRegs); in DecodeCRBITRCRegisterClass()
101 static DecodeStatus DecodeF4RCRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeF4RCRegisterClass() argument
104 return decodeRegisterClass(Inst, RegNo, FRegs); in DecodeF4RCRegisterClass()
107 static DecodeStatus DecodeF8RCRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeF8RCRegisterClass() argument
110 return decodeRegisterClass(Inst, RegNo, FRegs); in DecodeF8RCRegisterClass()
113 static DecodeStatus DecodeVFRCRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeVFRCRegisterClass() argument
116 return decodeRegisterClass(Inst, RegNo, VFRegs); in DecodeVFRCRegisterClass()
119 static DecodeStatus DecodeVRRCRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeVRRCRegisterClass() argument
122 return decodeRegisterClass(Inst, RegNo, VRegs); in DecodeVRRCRegisterClass()
125 static DecodeStatus DecodeVSRCRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeVSRCRegisterClass() argument
128 return decodeRegisterClass(Inst, RegNo, VSRegs); in DecodeVSRCRegisterClass()
131 static DecodeStatus DecodeVSFRCRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeVSFRCRegisterClass() argument
134 return decodeRegisterClass(Inst, RegNo, VSFRegs); in DecodeVSFRCRegisterClass()
137 static DecodeStatus DecodeVSSRCRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeVSSRCRegisterClass() argument
140 return decodeRegisterClass(Inst, RegNo, VSSRegs); in DecodeVSSRCRegisterClass()
143 static DecodeStatus DecodeGPRCRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeGPRCRegisterClass() argument
146 return decodeRegisterClass(Inst, RegNo, RRegs); in DecodeGPRCRegisterClass()
149 static DecodeStatus DecodeGPRC_NOR0RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeGPRC_NOR0RegisterClass() argument
152 return decodeRegisterClass(Inst, RegNo, RRegsNoR0); in DecodeGPRC_NOR0RegisterClass()
155 static DecodeStatus DecodeG8RCRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeG8RCRegisterClass() argument
158 return decodeRegisterClass(Inst, RegNo, XRegs); in DecodeG8RCRegisterClass()
161 static DecodeStatus DecodeG8RC_NOX0RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeG8RC_NOX0RegisterClass() argument
164 return decodeRegisterClass(Inst, RegNo, XRegsNoX0); in DecodeG8RC_NOX0RegisterClass()
170 static DecodeStatus DecodeQFRCRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeQFRCRegisterClass() argument
173 return decodeRegisterClass(Inst, RegNo, QFRegs); in DecodeQFRCRegisterClass()
176 static DecodeStatus DecodeSPE4RCRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeSPE4RCRegisterClass() argument
179 return decodeRegisterClass(Inst, RegNo, RRegs); in DecodeSPE4RCRegisterClass()
182 static DecodeStatus DecodeSPERCRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeSPERCRegisterClass() argument
185 return decodeRegisterClass(Inst, RegNo, SPERegs); in DecodeSPERCRegisterClass()
192 static DecodeStatus decodeUImmOperand(MCInst &Inst, uint64_t Imm, in decodeUImmOperand() argument
195 Inst.addOperand(MCOperand::createImm(Imm)); in decodeUImmOperand()
200 static DecodeStatus decodeSImmOperand(MCInst &Inst, uint64_t Imm, in decodeSImmOperand() argument
203 Inst.addOperand(MCOperand::createImm(SignExtend64<N>(Imm))); in decodeSImmOperand()
207 static DecodeStatus decodeMemRIOperands(MCInst &Inst, uint64_t Imm, in decodeMemRIOperands() argument
217 switch (Inst.getOpcode()) { in decodeMemRIOperands()
226 Inst.addOperand(MCOperand::createReg(RRegsNoR0[Base])); in decodeMemRIOperands()
233 Inst.insert(Inst.begin(), MCOperand::createReg(RRegsNoR0[Base])); in decodeMemRIOperands()
237 Inst.addOperand(MCOperand::createImm(SignExtend64<16>(Disp))); in decodeMemRIOperands()
238 Inst.addOperand(MCOperand::createReg(RRegsNoR0[Base])); in decodeMemRIOperands()
242 static DecodeStatus decodeMemRIXOperands(MCInst &Inst, uint64_t Imm, in decodeMemRIXOperands() argument
252 if (Inst.getOpcode() == PPC::LDU) in decodeMemRIXOperands()
254 Inst.addOperand(MCOperand::createReg(RRegsNoR0[Base])); in decodeMemRIXOperands()
255 else if (Inst.getOpcode() == PPC::STDU) in decodeMemRIXOperands()
256 Inst.insert(Inst.begin(), MCOperand::createReg(RRegsNoR0[Base])); in decodeMemRIXOperands()
258 Inst.addOperand(MCOperand::createImm(SignExtend64<16>(Disp << 2))); in decodeMemRIXOperands()
259 Inst.addOperand(MCOperand::createReg(RRegsNoR0[Base])); in decodeMemRIXOperands()
263 static DecodeStatus decodeMemRIX16Operands(MCInst &Inst, uint64_t Imm, in decodeMemRIX16Operands() argument
273 Inst.addOperand(MCOperand::createImm(SignExtend64<16>(Disp << 4))); in decodeMemRIX16Operands()
274 Inst.addOperand(MCOperand::createReg(RRegsNoR0[Base])); in decodeMemRIX16Operands()
278 static DecodeStatus decodeSPE8Operands(MCInst &Inst, uint64_t Imm, in decodeSPE8Operands() argument
288 Inst.addOperand(MCOperand::createImm(Disp << 3)); in decodeSPE8Operands()
289 Inst.addOperand(MCOperand::createReg(RRegsNoR0[Base])); in decodeSPE8Operands()
293 static DecodeStatus decodeSPE4Operands(MCInst &Inst, uint64_t Imm, in decodeSPE4Operands() argument
303 Inst.addOperand(MCOperand::createImm(Disp << 2)); in decodeSPE4Operands()
304 Inst.addOperand(MCOperand::createReg(RRegsNoR0[Base])); in decodeSPE4Operands()
308 static DecodeStatus decodeSPE2Operands(MCInst &Inst, uint64_t Imm, in decodeSPE2Operands() argument
318 Inst.addOperand(MCOperand::createImm(Disp << 1)); in decodeSPE2Operands()
319 Inst.addOperand(MCOperand::createReg(RRegsNoR0[Base])); in decodeSPE2Operands()
323 static DecodeStatus decodeCRBitMOperand(MCInst &Inst, uint64_t Imm, in decodeCRBitMOperand() argument
330 Inst.addOperand(MCOperand::createReg(CRRegs[7 - Zeros])); in decodeCRBitMOperand()
348 uint32_t Inst = IsLittleEndian ? support::endian::read32le(Bytes.data()) in getInstruction() local
353 decodeInstruction(DecoderTableQPX32, MI, Inst, Address, this, STI); in getInstruction()
358 decodeInstruction(DecoderTableSPE32, MI, Inst, Address, this, STI); in getInstruction()
363 return decodeInstruction(DecoderTable32, MI, Inst, Address, this, STI); in getInstruction()