Skip to content

Commit 48c4da2

Browse files
committed
[RISCV] Use OPCFG format record for vsetvli in tablgen. NFC
Reviewed By: kito-cheng Differential Revision: https://reviews.llvm.org/D137808
1 parent e80e65d commit 48c4da2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/RISCV/RISCVInstrFormatsV.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class RVInstSetiVLi<dag outs, dag ins, string opcodestr, string argstr>
6464
let Inst{30} = 1;
6565
let Inst{29-20} = vtypei{9-0};
6666
let Inst{19-15} = uimm;
67-
let Inst{14-12} = 0b111;
67+
let Inst{14-12} = OPCFG.Value;
6868
let Inst{11-7} = rd;
6969
let Opcode = OPC_OP_V.Value;
7070

@@ -80,7 +80,7 @@ class RVInstSetVLi<dag outs, dag ins, string opcodestr, string argstr>
8080
let Inst{31} = 0;
8181
let Inst{30-20} = vtypei;
8282
let Inst{19-15} = rs1;
83-
let Inst{14-12} = 0b111;
83+
let Inst{14-12} = OPCFG.Value;
8484
let Inst{11-7} = rd;
8585
let Opcode = OPC_OP_V.Value;
8686

@@ -97,7 +97,7 @@ class RVInstSetVL<dag outs, dag ins, string opcodestr, string argstr>
9797
let Inst{30-25} = 0b000000;
9898
let Inst{24-20} = rs2;
9999
let Inst{19-15} = rs1;
100-
let Inst{14-12} = 0b111;
100+
let Inst{14-12} = OPCFG.Value;
101101
let Inst{11-7} = rd;
102102
let Opcode = OPC_OP_V.Value;
103103

0 commit comments

Comments
 (0)