[RISCV] Use OPCFG format record for vsetvli in tablgen. NFC
authorCraig Topper <craig.topper@sifive.com>
Fri, 11 Nov 2022 02:00:35 +0000 (18:00 -0800)
committerCraig Topper <craig.topper@sifive.com>
Fri, 11 Nov 2022 05:08:07 +0000 (21:08 -0800)
Reviewed By: kito-cheng

Differential Revision: https://reviews.llvm.org/D137808

llvm/lib/Target/RISCV/RISCVInstrFormatsV.td

index 90ae61e..20e15e7 100644 (file)
@@ -64,7 +64,7 @@ class RVInstSetiVLi<dag outs, dag ins, string opcodestr, string argstr>
   let Inst{30} = 1;
   let Inst{29-20} = vtypei{9-0};
   let Inst{19-15} = uimm;
-  let Inst{14-12} = 0b111;
+  let Inst{14-12} = OPCFG.Value;
   let Inst{11-7} = rd;
   let Opcode = OPC_OP_V.Value;
 
@@ -80,7 +80,7 @@ class RVInstSetVLi<dag outs, dag ins, string opcodestr, string argstr>
   let Inst{31} = 0;
   let Inst{30-20} = vtypei;
   let Inst{19-15} = rs1;
-  let Inst{14-12} = 0b111;
+  let Inst{14-12} = OPCFG.Value;
   let Inst{11-7} = rd;
   let Opcode = OPC_OP_V.Value;
 
@@ -97,7 +97,7 @@ class RVInstSetVL<dag outs, dag ins, string opcodestr, string argstr>
   let Inst{30-25} = 0b000000;
   let Inst{24-20} = rs2;
   let Inst{19-15} = rs1;
-  let Inst{14-12} = 0b111;
+  let Inst{14-12} = OPCFG.Value;
   let Inst{11-7} = rd;
   let Opcode = OPC_OP_V.Value;