Lines Matching refs:Inst

81 static DecodeStatus decodeRegisterClass(MCInst &Inst, uint64_t RegNo,  in decodeRegisterClass()  argument
87 Inst.addOperand(MCOperand::createReg(RegNo)); in decodeRegisterClass()
91 static DecodeStatus DecodeGR32BitRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeGR32BitRegisterClass() argument
94 return decodeRegisterClass(Inst, RegNo, SystemZMC::GR32Regs, 16); in DecodeGR32BitRegisterClass()
97 static DecodeStatus DecodeGRH32BitRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeGRH32BitRegisterClass() argument
100 return decodeRegisterClass(Inst, RegNo, SystemZMC::GRH32Regs, 16); in DecodeGRH32BitRegisterClass()
103 static DecodeStatus DecodeGR64BitRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeGR64BitRegisterClass() argument
106 return decodeRegisterClass(Inst, RegNo, SystemZMC::GR64Regs, 16); in DecodeGR64BitRegisterClass()
109 static DecodeStatus DecodeGR128BitRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeGR128BitRegisterClass() argument
112 return decodeRegisterClass(Inst, RegNo, SystemZMC::GR128Regs, 16); in DecodeGR128BitRegisterClass()
116 DecodeADDR64BitRegisterClass(MCInst &Inst, uint64_t RegNo, uint64_t Address, in DecodeADDR64BitRegisterClass() argument
118 return decodeRegisterClass(Inst, RegNo, SystemZMC::GR64Regs, 16); in DecodeADDR64BitRegisterClass()
121 static DecodeStatus DecodeFP32BitRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeFP32BitRegisterClass() argument
124 return decodeRegisterClass(Inst, RegNo, SystemZMC::FP32Regs, 16); in DecodeFP32BitRegisterClass()
127 static DecodeStatus DecodeFP64BitRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeFP64BitRegisterClass() argument
130 return decodeRegisterClass(Inst, RegNo, SystemZMC::FP64Regs, 16); in DecodeFP64BitRegisterClass()
133 static DecodeStatus DecodeFP128BitRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeFP128BitRegisterClass() argument
136 return decodeRegisterClass(Inst, RegNo, SystemZMC::FP128Regs, 16); in DecodeFP128BitRegisterClass()
139 static DecodeStatus DecodeVR32BitRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeVR32BitRegisterClass() argument
142 return decodeRegisterClass(Inst, RegNo, SystemZMC::VR32Regs, 32); in DecodeVR32BitRegisterClass()
145 static DecodeStatus DecodeVR64BitRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeVR64BitRegisterClass() argument
148 return decodeRegisterClass(Inst, RegNo, SystemZMC::VR64Regs, 32); in DecodeVR64BitRegisterClass()
151 static DecodeStatus DecodeVR128BitRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeVR128BitRegisterClass() argument
154 return decodeRegisterClass(Inst, RegNo, SystemZMC::VR128Regs, 32); in DecodeVR128BitRegisterClass()
157 static DecodeStatus DecodeAR32BitRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeAR32BitRegisterClass() argument
160 return decodeRegisterClass(Inst, RegNo, SystemZMC::AR32Regs, 16); in DecodeAR32BitRegisterClass()
163 static DecodeStatus DecodeCR64BitRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeCR64BitRegisterClass() argument
166 return decodeRegisterClass(Inst, RegNo, SystemZMC::CR64Regs, 16); in DecodeCR64BitRegisterClass()
170 static DecodeStatus decodeUImmOperand(MCInst &Inst, uint64_t Imm) { in decodeUImmOperand() argument
173 Inst.addOperand(MCOperand::createImm(Imm)); in decodeUImmOperand()
178 static DecodeStatus decodeSImmOperand(MCInst &Inst, uint64_t Imm) { in decodeSImmOperand() argument
181 Inst.addOperand(MCOperand::createImm(SignExtend64<N>(Imm))); in decodeSImmOperand()
185 static DecodeStatus decodeU1ImmOperand(MCInst &Inst, uint64_t Imm, in decodeU1ImmOperand() argument
188 return decodeUImmOperand<1>(Inst, Imm); in decodeU1ImmOperand()
191 static DecodeStatus decodeU2ImmOperand(MCInst &Inst, uint64_t Imm, in decodeU2ImmOperand() argument
194 return decodeUImmOperand<2>(Inst, Imm); in decodeU2ImmOperand()
197 static DecodeStatus decodeU3ImmOperand(MCInst &Inst, uint64_t Imm, in decodeU3ImmOperand() argument
200 return decodeUImmOperand<3>(Inst, Imm); in decodeU3ImmOperand()
203 static DecodeStatus decodeU4ImmOperand(MCInst &Inst, uint64_t Imm, in decodeU4ImmOperand() argument
206 return decodeUImmOperand<4>(Inst, Imm); in decodeU4ImmOperand()
209 static DecodeStatus decodeU6ImmOperand(MCInst &Inst, uint64_t Imm, in decodeU6ImmOperand() argument
212 return decodeUImmOperand<6>(Inst, Imm); in decodeU6ImmOperand()
215 static DecodeStatus decodeU8ImmOperand(MCInst &Inst, uint64_t Imm, in decodeU8ImmOperand() argument
218 return decodeUImmOperand<8>(Inst, Imm); in decodeU8ImmOperand()
221 static DecodeStatus decodeU12ImmOperand(MCInst &Inst, uint64_t Imm, in decodeU12ImmOperand() argument
224 return decodeUImmOperand<12>(Inst, Imm); in decodeU12ImmOperand()
227 static DecodeStatus decodeU16ImmOperand(MCInst &Inst, uint64_t Imm, in decodeU16ImmOperand() argument
230 return decodeUImmOperand<16>(Inst, Imm); in decodeU16ImmOperand()
233 static DecodeStatus decodeU32ImmOperand(MCInst &Inst, uint64_t Imm, in decodeU32ImmOperand() argument
236 return decodeUImmOperand<32>(Inst, Imm); in decodeU32ImmOperand()
239 static DecodeStatus decodeS8ImmOperand(MCInst &Inst, uint64_t Imm, in decodeS8ImmOperand() argument
242 return decodeSImmOperand<8>(Inst, Imm); in decodeS8ImmOperand()
245 static DecodeStatus decodeS16ImmOperand(MCInst &Inst, uint64_t Imm, in decodeS16ImmOperand() argument
248 return decodeSImmOperand<16>(Inst, Imm); in decodeS16ImmOperand()
251 static DecodeStatus decodeS32ImmOperand(MCInst &Inst, uint64_t Imm, in decodeS32ImmOperand() argument
254 return decodeSImmOperand<32>(Inst, Imm); in decodeS32ImmOperand()
258 static DecodeStatus decodePCDBLOperand(MCInst &Inst, uint64_t Imm, in decodePCDBLOperand() argument
265 Inst, Decoder)) in decodePCDBLOperand()
266 Inst.addOperand(MCOperand::createImm(Value)); in decodePCDBLOperand()
271 static DecodeStatus decodePC12DBLBranchOperand(MCInst &Inst, uint64_t Imm, in decodePC12DBLBranchOperand() argument
274 return decodePCDBLOperand<12>(Inst, Imm, Address, true, Decoder); in decodePC12DBLBranchOperand()
277 static DecodeStatus decodePC16DBLBranchOperand(MCInst &Inst, uint64_t Imm, in decodePC16DBLBranchOperand() argument
280 return decodePCDBLOperand<16>(Inst, Imm, Address, true, Decoder); in decodePC16DBLBranchOperand()
283 static DecodeStatus decodePC24DBLBranchOperand(MCInst &Inst, uint64_t Imm, in decodePC24DBLBranchOperand() argument
286 return decodePCDBLOperand<24>(Inst, Imm, Address, true, Decoder); in decodePC24DBLBranchOperand()
289 static DecodeStatus decodePC32DBLBranchOperand(MCInst &Inst, uint64_t Imm, in decodePC32DBLBranchOperand() argument
292 return decodePCDBLOperand<32>(Inst, Imm, Address, true, Decoder); in decodePC32DBLBranchOperand()
295 static DecodeStatus decodePC32DBLOperand(MCInst &Inst, uint64_t Imm, in decodePC32DBLOperand() argument
298 return decodePCDBLOperand<32>(Inst, Imm, Address, false, Decoder); in decodePC32DBLOperand()
301 static DecodeStatus decodeBDAddr12Operand(MCInst &Inst, uint64_t Field, in decodeBDAddr12Operand() argument
306 Inst.addOperand(MCOperand::createReg(Base == 0 ? 0 : Regs[Base])); in decodeBDAddr12Operand()
307 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDAddr12Operand()
311 static DecodeStatus decodeBDAddr20Operand(MCInst &Inst, uint64_t Field, in decodeBDAddr20Operand() argument
316 Inst.addOperand(MCOperand::createReg(Base == 0 ? 0 : Regs[Base])); in decodeBDAddr20Operand()
317 Inst.addOperand(MCOperand::createImm(SignExtend64<20>(Disp))); in decodeBDAddr20Operand()
321 static DecodeStatus decodeBDXAddr12Operand(MCInst &Inst, uint64_t Field, in decodeBDXAddr12Operand() argument
327 Inst.addOperand(MCOperand::createReg(Base == 0 ? 0 : Regs[Base])); in decodeBDXAddr12Operand()
328 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDXAddr12Operand()
329 Inst.addOperand(MCOperand::createReg(Index == 0 ? 0 : Regs[Index])); in decodeBDXAddr12Operand()
333 static DecodeStatus decodeBDXAddr20Operand(MCInst &Inst, uint64_t Field, in decodeBDXAddr20Operand() argument
339 Inst.addOperand(MCOperand::createReg(Base == 0 ? 0 : Regs[Base])); in decodeBDXAddr20Operand()
340 Inst.addOperand(MCOperand::createImm(SignExtend64<20>(Disp))); in decodeBDXAddr20Operand()
341 Inst.addOperand(MCOperand::createReg(Index == 0 ? 0 : Regs[Index])); in decodeBDXAddr20Operand()
345 static DecodeStatus decodeBDLAddr12Len4Operand(MCInst &Inst, uint64_t Field, in decodeBDLAddr12Len4Operand() argument
351 Inst.addOperand(MCOperand::createReg(Base == 0 ? 0 : Regs[Base])); in decodeBDLAddr12Len4Operand()
352 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDLAddr12Len4Operand()
353 Inst.addOperand(MCOperand::createImm(Length + 1)); in decodeBDLAddr12Len4Operand()
357 static DecodeStatus decodeBDLAddr12Len8Operand(MCInst &Inst, uint64_t Field, in decodeBDLAddr12Len8Operand() argument
363 Inst.addOperand(MCOperand::createReg(Base == 0 ? 0 : Regs[Base])); in decodeBDLAddr12Len8Operand()
364 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDLAddr12Len8Operand()
365 Inst.addOperand(MCOperand::createImm(Length + 1)); in decodeBDLAddr12Len8Operand()
369 static DecodeStatus decodeBDRAddr12Operand(MCInst &Inst, uint64_t Field, in decodeBDRAddr12Operand() argument
375 Inst.addOperand(MCOperand::createReg(Base == 0 ? 0 : Regs[Base])); in decodeBDRAddr12Operand()
376 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDRAddr12Operand()
377 Inst.addOperand(MCOperand::createReg(Regs[Length])); in decodeBDRAddr12Operand()
381 static DecodeStatus decodeBDVAddr12Operand(MCInst &Inst, uint64_t Field, in decodeBDVAddr12Operand() argument
387 Inst.addOperand(MCOperand::createReg(Base == 0 ? 0 : Regs[Base])); in decodeBDVAddr12Operand()
388 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDVAddr12Operand()
389 Inst.addOperand(MCOperand::createReg(SystemZMC::VR128Regs[Index])); in decodeBDVAddr12Operand()
393 static DecodeStatus decodeBDAddr32Disp12Operand(MCInst &Inst, uint64_t Field, in decodeBDAddr32Disp12Operand() argument
396 return decodeBDAddr12Operand(Inst, Field, SystemZMC::GR32Regs); in decodeBDAddr32Disp12Operand()
399 static DecodeStatus decodeBDAddr32Disp20Operand(MCInst &Inst, uint64_t Field, in decodeBDAddr32Disp20Operand() argument
402 return decodeBDAddr20Operand(Inst, Field, SystemZMC::GR32Regs); in decodeBDAddr32Disp20Operand()
405 static DecodeStatus decodeBDAddr64Disp12Operand(MCInst &Inst, uint64_t Field, in decodeBDAddr64Disp12Operand() argument
408 return decodeBDAddr12Operand(Inst, Field, SystemZMC::GR64Regs); in decodeBDAddr64Disp12Operand()
411 static DecodeStatus decodeBDAddr64Disp20Operand(MCInst &Inst, uint64_t Field, in decodeBDAddr64Disp20Operand() argument
414 return decodeBDAddr20Operand(Inst, Field, SystemZMC::GR64Regs); in decodeBDAddr64Disp20Operand()
418 decodeBDXAddr64Disp12Operand(MCInst &Inst, uint64_t Field, uint64_t Address, in decodeBDXAddr64Disp12Operand() argument
420 return decodeBDXAddr12Operand(Inst, Field, SystemZMC::GR64Regs); in decodeBDXAddr64Disp12Operand()
424 decodeBDXAddr64Disp20Operand(MCInst &Inst, uint64_t Field, uint64_t Address, in decodeBDXAddr64Disp20Operand() argument
426 return decodeBDXAddr20Operand(Inst, Field, SystemZMC::GR64Regs); in decodeBDXAddr64Disp20Operand()
430 decodeBDLAddr64Disp12Len4Operand(MCInst &Inst, uint64_t Field, uint64_t Address, in decodeBDLAddr64Disp12Len4Operand() argument
432 return decodeBDLAddr12Len4Operand(Inst, Field, SystemZMC::GR64Regs); in decodeBDLAddr64Disp12Len4Operand()
436 decodeBDLAddr64Disp12Len8Operand(MCInst &Inst, uint64_t Field, uint64_t Address, in decodeBDLAddr64Disp12Len8Operand() argument
438 return decodeBDLAddr12Len8Operand(Inst, Field, SystemZMC::GR64Regs); in decodeBDLAddr64Disp12Len8Operand()
442 decodeBDRAddr64Disp12Operand(MCInst &Inst, uint64_t Field, uint64_t Address, in decodeBDRAddr64Disp12Operand() argument
444 return decodeBDRAddr12Operand(Inst, Field, SystemZMC::GR64Regs); in decodeBDRAddr64Disp12Operand()
448 decodeBDVAddr64Disp12Operand(MCInst &Inst, uint64_t Field, uint64_t Address, in decodeBDVAddr64Disp12Operand() argument
450 return decodeBDVAddr12Operand(Inst, Field, SystemZMC::GR64Regs); in decodeBDVAddr64Disp12Operand()
484 uint64_t Inst = 0; in getInstruction() local
486 Inst = (Inst << 8) | Bytes[I]; in getInstruction()
488 return decodeInstruction(Table, MI, Inst, Address, this, STI); in getInstruction()