Skip to content

Commit 5e8e03d

Browse files
committed
[RISCV] Simplify RVPUnary tablegen class. NFC
imm field was unused. rs1 is already handled in RVInstIBase.
1 parent c59e4b5 commit 5e8e03d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoP.td

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,15 @@ class RVPUnaryImm8<bits<8> funct8, string opcodestr>
6969
let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in
7070
class RVPUnary<bits<3> f, string opcodestr, dag operands, string argstr>
7171
: RVInstIBase<0b010, OPC_OP_IMM_32, (outs GPR:$rd), operands, opcodestr, argstr> {
72-
bits<5> imm;
73-
bits<5> rs1;
74-
7572
let Inst{31} = 0b1;
7673
let Inst{30-28} = f;
7774
let Inst{27} = 0b0;
78-
let Inst{19-15} = rs1;
7975
}
8076

8177
class RVPUnaryImm5<bits<3> f, string opcodestr>
8278
: RVPUnary<f, opcodestr, (ins GPR:$rs1, uimm5:$uimm5), "$rd, $rs1, $uimm5"> {
8379
bits<5> uimm5;
8480

85-
let imm = uimm5;
8681
let Inst{26-25} = 0b01;
8782
let Inst{24-20} = uimm5;
8883
}

0 commit comments

Comments
 (0)