Skip to content

Commit 43d5b23

Browse files
committed
remove unused patterns, revert unnecessary change in rv64p-valid.s
1 parent a39ef92 commit 43d5b23

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoP.td

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@
1818
// Operand and SDNode transformation definitions.
1919
//===----------------------------------------------------------------------===//
2020

21-
def RVPGPRPairRV32 : RegisterOperand<GPRPair> {
22-
let ParserMatchClass = GPRPairRV32Operand;
23-
let EncoderMethod = "getRVPGPRPair";
24-
let DecoderMethod = "decodeRVPGPRPair";
25-
}
26-
2721
def simm10 : RISCVSImmLeafOp<10>;
2822

2923
//===----------------------------------------------------------------------===//
@@ -40,20 +34,6 @@ class RVPUnaryImm9<bits<7> funct7, string opcodestr>
4034
let Inst{24-15} = simm10;
4135
}
4236

43-
let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in
44-
class RVPUnaryImm9Rdp<bits<7> funct7, string opcodestr>
45-
: RVInstIBase<0b010, OPC_OP_IMM_32, (outs RVPGPRPairRV32:$rdp),
46-
(ins simm10:$simm10),
47-
opcodestr, "$rdp, $simm10"> {
48-
bits<10> simm10;
49-
bits<4> rdp;
50-
51-
let Inst{31-25} = funct7;
52-
let Inst{24-15} = simm10;
53-
let Inst{11-8} = rdp;
54-
let Inst{7} = 0b0;
55-
}
56-
5737
let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in
5838
class RVPUnaryImm8<bits<8> funct8, string opcodestr>
5939
: RVInstIBase<0b010, OPC_OP_IMM_32, (outs GPR:$rd), (ins uimm8:$uimm8),

llvm/test/MC/RISCV/rv64p-valid.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-p -riscv-no-aliases -show-encoding \
1+
# RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-p -M no-aliases -show-encoding \
22
# RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
33
# RUN: llvm-mc -filetype=obj --triple=riscv64 -mattr=+experimental-p < %s \
44
# RUN: | llvm-objdump --triple=riscv64 --mattr=+experimental-p -M no-aliases --no-print-imm-hex -d -r - \

0 commit comments

Comments
 (0)