@@ -365,9 +365,9 @@ static bool IsAGPROperand(const MCInst &Inst, int OpIdx,
365
365
return Reg >= AMDGPU::AGPR0 && Reg <= AMDGPU::AGPR255;
366
366
}
367
367
368
- static DecodeStatus decodeOperand_AVLdSt_Any (MCInst &Inst, unsigned Imm,
369
- AMDGPUDisassembler::OpWidthTy Opw,
370
- const MCDisassembler *Decoder) {
368
+ static DecodeStatus decodeAVLdSt (MCInst &Inst, unsigned Imm,
369
+ AMDGPUDisassembler::OpWidthTy Opw,
370
+ const MCDisassembler *Decoder) {
371
371
auto DAsm = static_cast <const AMDGPUDisassembler*>(Decoder);
372
372
if (!DAsm->isGFX90A ()) {
373
373
Imm &= 511 ;
@@ -399,6 +399,13 @@ static DecodeStatus decodeOperand_AVLdSt_Any(MCInst &Inst, unsigned Imm,
399
399
return addOperand (Inst, DAsm->decodeSrcOp (Opw, Imm | 256 ));
400
400
}
401
401
402
+ template <AMDGPUDisassembler::OpWidthTy Opw>
403
+ static DecodeStatus decodeAVLdSt (MCInst &Inst, unsigned Imm,
404
+ uint64_t /* Addr */ ,
405
+ const MCDisassembler *Decoder) {
406
+ return decodeAVLdSt (Inst, Imm, Opw, Decoder);
407
+ }
408
+
402
409
static DecodeStatus decodeOperand_VSrc_f64 (MCInst &Inst, unsigned Imm,
403
410
uint64_t Addr,
404
411
const MCDisassembler *Decoder) {
@@ -408,41 +415,6 @@ static DecodeStatus decodeOperand_VSrc_f64(MCInst &Inst, unsigned Imm,
408
415
Inst, DAsm->decodeSrcOp (AMDGPUDisassembler::OPW64, Imm, false , 64 , true ));
409
416
}
410
417
411
- static DecodeStatus
412
- DecodeAVLdSt_32RegisterClass (MCInst &Inst, unsigned Imm, uint64_t Addr,
413
- const MCDisassembler *Decoder) {
414
- return decodeOperand_AVLdSt_Any (Inst, Imm,
415
- AMDGPUDisassembler::OPW32, Decoder);
416
- }
417
-
418
- static DecodeStatus
419
- DecodeAVLdSt_64RegisterClass (MCInst &Inst, unsigned Imm, uint64_t Addr,
420
- const MCDisassembler *Decoder) {
421
- return decodeOperand_AVLdSt_Any (Inst, Imm,
422
- AMDGPUDisassembler::OPW64, Decoder);
423
- }
424
-
425
- static DecodeStatus
426
- DecodeAVLdSt_96RegisterClass (MCInst &Inst, unsigned Imm, uint64_t Addr,
427
- const MCDisassembler *Decoder) {
428
- return decodeOperand_AVLdSt_Any (Inst, Imm,
429
- AMDGPUDisassembler::OPW96, Decoder);
430
- }
431
-
432
- static DecodeStatus
433
- DecodeAVLdSt_128RegisterClass (MCInst &Inst, unsigned Imm, uint64_t Addr,
434
- const MCDisassembler *Decoder) {
435
- return decodeOperand_AVLdSt_Any (Inst, Imm,
436
- AMDGPUDisassembler::OPW128, Decoder);
437
- }
438
-
439
- static DecodeStatus
440
- DecodeAVLdSt_160RegisterClass (MCInst &Inst, unsigned Imm, uint64_t Addr,
441
- const MCDisassembler *Decoder) {
442
- return decodeOperand_AVLdSt_Any (Inst, Imm, AMDGPUDisassembler::OPW160,
443
- Decoder);
444
- }
445
-
446
418
#define DECODE_SDWA (DecName ) \
447
419
DECODE_OPERAND (decodeSDWA##DecName, decodeSDWA##DecName)
448
420
0 commit comments