[llvm] 7899cc3 - [RISCV] Replace hardcoded constant with OPIVI.Value in tablegen. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 30 21:02:30 PST 2022


Author: Craig Topper
Date: 2022-11-30T20:58:40-08:00
New Revision: 7899cc3c4536f31b9988165ebb5fb2c649b377f4

URL: https://github.com/llvm/llvm-project/commit/7899cc3c4536f31b9988165ebb5fb2c649b377f4
DIFF: https://github.com/llvm/llvm-project/commit/7899cc3c4536f31b9988165ebb5fb2c649b377f4.diff

LOG: [RISCV] Replace hardcoded constant with OPIVI.Value in tablegen. NFC

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVInstrFormatsV.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVInstrFormatsV.td b/llvm/lib/Target/RISCV/RISCVInstrFormatsV.td
index 20e15e7e0349e..5a5e4c454453e 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrFormatsV.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrFormatsV.td
@@ -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;
 


        


More information about the llvm-commits mailing list