[RISCV] Replace hardcoded constant with OPIVI.Value in tablegen. NFC
authorCraig Topper <craig.topper@sifive.com>
Thu, 1 Dec 2022 04:10:13 +0000 (20:10 -0800)
committerCraig Topper <craig.topper@sifive.com>
Thu, 1 Dec 2022 04:58:40 +0000 (20:58 -0800)
llvm/lib/Target/RISCV/RISCVInstrFormatsV.td

index 20e15e7..5a5e4c4 100644 (file)
@@ -175,7 +175,7 @@ class RVInstIVI<bits<6> funct6, dag outs, dag ins, string opcodestr,
   let Inst{25} = vm;
   let Inst{24-20} = vs2;
   let Inst{19-15} = imm;
-  let Inst{14-12} = 0b011;
+  let Inst{14-12} = OPIVI.Value;
   let Inst{11-7} = vd;
   let Opcode = OPC_OP_V.Value;