Lines Matching defs:Inst

51 static DecodeStatus decodeRegisterClass(MCInst &Inst, uint64_t RegNo,
57 Inst.addOperand(MCOperand::CreateReg(RegNo));
61 static DecodeStatus DecodeGR32BitRegisterClass(MCInst &Inst, uint64_t RegNo,
64 return decodeRegisterClass(Inst, RegNo, SystemZMC::GR32Regs);
67 static DecodeStatus DecodeGRH32BitRegisterClass(MCInst &Inst, uint64_t RegNo,
70 return decodeRegisterClass(Inst, RegNo, SystemZMC::GRH32Regs);
73 static DecodeStatus DecodeGR64BitRegisterClass(MCInst &Inst, uint64_t RegNo,
76 return decodeRegisterClass(Inst, RegNo, SystemZMC::GR64Regs);
79 static DecodeStatus DecodeGR128BitRegisterClass(MCInst &Inst, uint64_t RegNo,
82 return decodeRegisterClass(Inst, RegNo, SystemZMC::GR128Regs);
85 static DecodeStatus DecodeADDR64BitRegisterClass(MCInst &Inst, uint64_t RegNo,
88 return decodeRegisterClass(Inst, RegNo, SystemZMC::GR64Regs);
91 static DecodeStatus DecodeFP32BitRegisterClass(MCInst &Inst, uint64_t RegNo,
94 return decodeRegisterClass(Inst, RegNo, SystemZMC::FP32Regs);
97 static DecodeStatus DecodeFP64BitRegisterClass(MCInst &Inst, uint64_t RegNo,
100 return decodeRegisterClass(Inst, RegNo, SystemZMC::FP64Regs);
103 static DecodeStatus DecodeFP128BitRegisterClass(MCInst &Inst, uint64_t RegNo,
106 return decodeRegisterClass(Inst, RegNo, SystemZMC::FP128Regs);
110 static DecodeStatus decodeUImmOperand(MCInst &Inst, uint64_t Imm) {
112 Inst.addOperand(MCOperand::CreateImm(Imm));
117 static DecodeStatus decodeSImmOperand(MCInst &Inst, uint64_t Imm) {
119 Inst.addOperand(MCOperand::CreateImm(SignExtend64<N>(Imm)));
123 static DecodeStatus decodeAccessRegOperand(MCInst &Inst, uint64_t Imm,
126 return decodeUImmOperand<4>(Inst, Imm);
129 static DecodeStatus decodeU4ImmOperand(MCInst &Inst, uint64_t Imm,
131 return decodeUImmOperand<4>(Inst, Imm);
134 static DecodeStatus decodeU6ImmOperand(MCInst &Inst, uint64_t Imm,
136 return decodeUImmOperand<6>(Inst, Imm);
139 static DecodeStatus decodeU8ImmOperand(MCInst &Inst, uint64_t Imm,
141 return decodeUImmOperand<8>(Inst, Imm);
144 static DecodeStatus decodeU16ImmOperand(MCInst &Inst, uint64_t Imm,
146 return decodeUImmOperand<16>(Inst, Imm);
149 static DecodeStatus decodeU32ImmOperand(MCInst &Inst, uint64_t Imm,
151 return decodeUImmOperand<32>(Inst, Imm);
154 static DecodeStatus decodeS8ImmOperand(MCInst &Inst, uint64_t Imm,
156 return decodeSImmOperand<8>(Inst, Imm);
159 static DecodeStatus decodeS16ImmOperand(MCInst &Inst, uint64_t Imm,
161 return decodeSImmOperand<16>(Inst, Imm);
164 static DecodeStatus decodeS32ImmOperand(MCInst &Inst, uint64_t Imm,
166 return decodeSImmOperand<32>(Inst, Imm);
170 static DecodeStatus decodePCDBLOperand(MCInst &Inst, uint64_t Imm,
173 Inst.addOperand(MCOperand::CreateImm(SignExtend64<N>(Imm) * 2 + Address));
177 static DecodeStatus decodePC16DBLOperand(MCInst &Inst, uint64_t Imm,
180 return decodePCDBLOperand<16>(Inst, Imm, Address);
183 static DecodeStatus decodePC32DBLOperand(MCInst &Inst, uint64_t Imm,
186 return decodePCDBLOperand<32>(Inst, Imm, Address);
189 static DecodeStatus decodeBDAddr12Operand(MCInst &Inst, uint64_t Field,
194 Inst.addOperand(MCOperand::CreateReg(Base == 0 ? 0 : Regs[Base]));
195 Inst.addOperand(MCOperand::CreateImm(Disp));
199 static DecodeStatus decodeBDAddr20Operand(MCInst &Inst, uint64_t Field,
204 Inst.addOperand(MCOperand::CreateReg(Base == 0 ? 0 : Regs[Base]));
205 Inst.addOperand(MCOperand::CreateImm(SignExtend64<20>(Disp)));
209 static DecodeStatus decodeBDXAddr12Operand(MCInst &Inst, uint64_t Field,
215 Inst.addOperand(MCOperand::CreateReg(Base == 0 ? 0 : Regs[Base]));
216 Inst.addOperand(MCOperand::CreateImm(Disp));
217 Inst.addOperand(MCOperand::CreateReg(Index == 0 ? 0 : Regs[Index]));
221 static DecodeStatus decodeBDXAddr20Operand(MCInst &Inst, uint64_t Field,
227 Inst.addOperand(MCOperand::CreateReg(Base == 0 ? 0 : Regs[Base]));
228 Inst.addOperand(MCOperand::CreateImm(SignExtend64<20>(Disp)));
229 Inst.addOperand(MCOperand::CreateReg(Index == 0 ? 0 : Regs[Index]));
233 static DecodeStatus decodeBDLAddr12Len8Operand(MCInst &Inst, uint64_t Field,
239 Inst.addOperand(MCOperand::CreateReg(Base == 0 ? 0 : Regs[Base]));
240 Inst.addOperand(MCOperand::CreateImm(Disp));
241 Inst.addOperand(MCOperand::CreateImm(Length + 1));
245 static DecodeStatus decodeBDAddr32Disp12Operand(MCInst &Inst, uint64_t Field,
248 return decodeBDAddr12Operand(Inst, Field, SystemZMC::GR32Regs);
251 static DecodeStatus decodeBDAddr32Disp20Operand(MCInst &Inst, uint64_t Field,
254 return decodeBDAddr20Operand(Inst, Field, SystemZMC::GR32Regs);
257 static DecodeStatus decodeBDAddr64Disp12Operand(MCInst &Inst, uint64_t Field,
260 return decodeBDAddr12Operand(Inst, Field, SystemZMC::GR64Regs);
263 static DecodeStatus decodeBDAddr64Disp20Operand(MCInst &Inst, uint64_t Field,
266 return decodeBDAddr20Operand(Inst, Field, SystemZMC::GR64Regs);
269 static DecodeStatus decodeBDXAddr64Disp12Operand(MCInst &Inst, uint64_t Field,
272 return decodeBDXAddr12Operand(Inst, Field, SystemZMC::GR64Regs);
275 static DecodeStatus decodeBDXAddr64Disp20Operand(MCInst &Inst, uint64_t Field,
278 return decodeBDXAddr20Operand(Inst, Field, SystemZMC::GR64Regs);
281 static DecodeStatus decodeBDLAddr64Disp12Len8Operand(MCInst &Inst,
285 return decodeBDLAddr12Len8Operand(Inst, Field, SystemZMC::GR64Regs);
319 uint64_t Inst = 0;
321 Inst = (Inst << 8) | Bytes[I];
323 return decodeInstruction(Table, MI, Inst, Address, this, STI);