Skip to content

Commit 95c4177

Browse files
committed
change POverlap to use RV32GPRPair32 for now.
1 parent 212b5b1 commit 95c4177

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,6 @@ static constexpr DecoderListEntry DecoderList32[]{
698698
{DecoderTableXRivos32, XRivosFeatureGroup, "Rivos"},
699699
{DecoderTable32, {}, "RISCV32"},
700700
{DecoderTableRV32GPRPair32, {}, "RV32GPRPair (rv32 and GPR pairs)"},
701-
{DecoderTablePOverlap32, {}, "POverlap (32-bit Instructions overlapping with P extension itself)"},
702701
{DecoderTableZfinx32, {}, "Zfinx (Float in Integer)"},
703702
{DecoderTableZdinxRV32GPRPair32,
704703
{},

llvm/lib/Target/RISCV/RISCVInstrInfoP.td

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def PSLLI_B : RVPUnary<0b10000, 0b0001000, 0b010, OPC_OP_IMM_32, "pslli.b">;
304304
def PSLLI_H : RVPUnary<0b10000, 0b0010000, 0b010, OPC_OP_IMM_32, "pslli.h">;
305305
def PSSLAI_H : RVPUnary<0b11010, 0b0010000, 0b010, OPC_OP_IMM_32, "psslai.h">;
306306
} // Predicates = [HasStdExtP]
307-
let DecoderNamespace = "POverlap",
307+
let DecoderNamespace = "RV32GPRPair",
308308
Predicates = [HasStdExtP, IsRV32] in
309309
def SSLAI : RVPUnary<0b11010, 0b0100000, 0b010, OPC_OP_IMM_32, "sslai">;
310310
let Predicates = [HasStdExtP, IsRV64] in {
@@ -319,7 +319,7 @@ def PLI_W : RVPUnaryImm9<0b1011001, "pli.w">;
319319
let Predicates = [HasStdExtP] in
320320
def PLI_B : RVPUnaryImm8<0b10110100, "pli.b">;
321321

322-
let DecoderNamespace = "POverlap",
322+
let DecoderNamespace = "RV32GPRPair",
323323
Predicates = [HasStdExtP, IsRV32] in {
324324
def PSEXT_H_B_RV32 : RVPUnaryWUF<0b00, 0b00100, "psext.h.b">;
325325
def PSABS_H_RV32 : RVPUnaryWUF<0b00, 0b00111, "psabs.h">;
@@ -347,7 +347,7 @@ def PADD_BS : RVPBinary1F1W<0b001, 0b10, 0b010, "padd.bs">;
347347
def PSSHA_HS : RVPBinary1F1W<0b110, 0b00, 0b010, "pssha.hs">;
348348
def PSSHAR_HS : RVPBinary1F1W<0b111, 0b00, 0b010, "psshar.hs">;
349349
} // Predicates = [HasStdExtP]
350-
let DecoderNamespace = "POverlap",
350+
let DecoderNamespace = "RV32GPRPair",
351351
Predicates = [HasStdExtP, IsRV32] in {
352352
def SSHA : RVPBinary1F1W<0b110, 0b01, 0b010, "ssha">;
353353
def SSHAR : RVPBinary1F1W<0b111, 0b01, 0b010, "sshar">;
@@ -372,7 +372,7 @@ def PSRARI_H : RVPUnary1F0<0b101, 0b0010000, "psrari.h">;
372372
def PSATI_H : RVPUnary1F0<0b110, 0b0010000, "psati.h">;
373373
} // Predicates = [HasStdExtP]
374374

375-
let DecoderNamespace = "POverlap",
375+
let DecoderNamespace = "RV32GPRPair",
376376
Predicates = [HasStdExtP, IsRV32] in {
377377
def USATI_RV32 : RVPUnary1F0<0b010, 0b0100000, "usati">;
378378
def SRARI : RVPUnary1F0<0b101, 0b0100000, "srari">;
@@ -433,7 +433,7 @@ def PASUBU_H : RVPBinary1LongFW<0b1111, 0b00, 0b000, "pasubu.h">;
433433
def PASUBU_B : RVPBinary1LongFW<0b1111, 0b10, 0b000, "pasubu.b">;
434434
} // Predicates = [HasStdExtP]
435435

436-
let DecoderNamespace = "POverlap",
436+
let DecoderNamespace = "RV32GPRPair",
437437
Predicates = [HasStdExtP, IsRV32] in {
438438
def SADD : RVPBinary1LongFW<0b0010, 0b01, 0b000, "sadd">;
439439
def AADD : RVPBinary1LongFW<0b0011, 0b01, 0b000, "aadd">;
@@ -478,7 +478,7 @@ def PDIFSUMU_B : RVPBinary1LongFW<0b0110, 0b10, 0b001, "pdifsumu.b">;
478478
def PDIFSUMAU_B : RVPBinary1LongFW<0b0111, 0b10, 0b001, "pdifsumau.b">;
479479
} // Predicates = [HasStdExtP]
480480

481-
let DecoderNamespace = "POverlap",
481+
let DecoderNamespace = "RV32GPRPair",
482482
Predicates = [HasStdExtP, IsRV32] in {
483483
def MUL_H01 : RVPBinary1LongFW<0b0010, 0b01, 0b001, "mul.h01">;
484484
def MACC_H01 : RVPBinary1LongFW<0b0011, 0b01, 0b001, "macc.h01">;
@@ -505,7 +505,7 @@ def PSH1ADD_H : RVPBinary1F0W<0b010, 0b00, 0b010, "psh1add.h">;
505505
def PSSH1SADD_H : RVPBinary1F0W<0b011, 0b00, 0b010, "pssh1sadd.h">;
506506
} // Predicates = [HasStdExtP]
507507

508-
let DecoderNamespace = "POverlap",
508+
let DecoderNamespace = "RV32GPRPair",
509509
Predicates = [HasStdExtP, IsRV32] in {
510510
def SSH1SADD : RVPBinary1F0W<0b010, 0b01, 0b010, "ssh1sadd">;
511511
} // Predicates = [HasStdExtP, IsRV32]
@@ -534,7 +534,7 @@ def PMULU_H_B11 : RVPBinary1LongFW<0b0110, 0b00, 0b011, "pmulu.h.b11">;
534534
def PMULSU_H_B00 : RVPBinary1LongFW<0b1100, 0b00, 0b011, "pmulsu.h.b00">;
535535
def PMULSU_H_B11 : RVPBinary1LongFW<0b1110, 0b00, 0b011, "pmulsu.h.b11">;
536536
} // Predicates = [HasStdExtP]
537-
let DecoderNamespace = "POverlap",
537+
let DecoderNamespace = "RV32GPRPair",
538538
Predicates = [HasStdExtP, IsRV32] in {
539539
def MUL_H00 : RVPBinary1LongFW<0b0000, 0b01, 0b011, "mul.h00">;
540540
def MACC_H00 : RVPBinary1LongFW<0b0001, 0b01, 0b011, "macc.h00">;
@@ -588,7 +588,7 @@ def PPACKBT_H : RVPBinary1F0W<0b001, 0b00, 0b100, "ppackbt.h">;
588588
def PPACKTB_H : RVPBinary1F0W<0b010, 0b00, 0b100, "ppacktb.h">;
589589
def PPACKT_H : RVPBinary1F0W<0b011, 0b00, 0b100, "ppackt.h">;
590590
} // Predicates = [HasStdExtP]
591-
let DecoderNamespace = "POverlap",
591+
let DecoderNamespace = "RV32GPRPair",
592592
Predicates = [HasStdExtP, IsRV32] in {
593593
def PACKBT : RVPBinary1F0W<0b001, 0b01, 0b100, "packbt">;
594594
def PACKTB : RVPBinary1F0W<0b010, 0b01, 0b100, "packtb">;
@@ -635,7 +635,7 @@ def PM4ADDSU_B : RVPBinary1LongFW<0b1100, 0b10, 0b101, "pm4addsu.b">;
635635
def PM2ADDASU_H : RVPBinary1LongFW<0b1101, 0b00, 0b101, "pm2addasu.h">;
636636
def PM4ADDASU_B : RVPBinary1LongFW<0b1101, 0b10, 0b101, "pm4addasu.b">;
637637
} // Predicates = [HasStdExtP]
638-
let DecoderNamespace = "POverlap",
638+
let DecoderNamespace = "RV32GPRPair",
639639
Predicates = [HasStdExtP, IsRV32] in {
640640
def MQACC_H01 : RVPBinary1LongFW<0b1111, 0b00, 0b101, "mqacc.h01">;
641641
def MQRACC_H01 : RVPBinary1LongFW<0b1111, 0b10, 0b101, "mqracc.h01">;
@@ -696,7 +696,7 @@ def PMAX_B : RVPBinary1LongFW<0b1110, 0b10, 0b110, "pmax.b">;
696696
def PMAXU_H : RVPBinary1LongFW<0b1111, 0b00, 0b110, "pmaxu.h">;
697697
def PMAXU_B : RVPBinary1LongFW<0b1111, 0b10, 0b110, "pmaxu.b">;
698698
} // Predicates = [HasStdExtP]
699-
let DecoderNamespace = "POverlap",
699+
let DecoderNamespace = "RV32GPRPair",
700700
Predicates = [HasStdExtP, IsRV32] in {
701701
def MSEQ : RVPBinary1LongFW<0b1000, 0b01, 0b110, "mseq">;
702702
def MSLT : RVPBinary1LongFW<0b1010, 0b01, 0b110, "mslt">;
@@ -748,7 +748,7 @@ def PMULQ_H : RVPBinary1LongFW<0b1010, 0b00, 0b111, "pmulq.h">;
748748
def PMULQR_H : RVPBinary1LongFW<0b1010, 0b10, 0b111, "pmulqr.h">;
749749
} // Predicates = [HasStdExtP]
750750

751-
let DecoderNamespace = "POverlap",
751+
let DecoderNamespace = "RV32GPRPair",
752752
Predicates = [HasStdExtP, IsRV32] in {
753753
def MULHR : RVPBinary1LongFW<0b0000, 0b11, 0b111, "mulhr">;
754754
def MHACC : RVPBinary1LongFW<0b0001, 0b01, 0b111, "mhacc">;

0 commit comments

Comments
 (0)