[llvm] [RISCV] Use decodeUImmLog2XLenNonZeroOperand in decodeRVCInstrRdRs1UImm. NFC (PR #133759)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 31 16:14:46 PDT 2025


================
@@ -661,7 +661,7 @@ def C_SLLI_HINT : RVInst16CI<0b000, 0b10, (outs GPRX0:$rd_wb),
                   Sched<[WriteShiftImm, ReadShiftImm]> {
   let Constraints = "$rd = $rd_wb";
   let Inst{11-7} = 0;
-  let DecoderMethod = "decodeRVCInstrRdRs1UImm";
+  let DecoderMethod = "decodeRVCInstrRdRs1UImmLog2XLenNonZero";
----------------
topperc wrote:

I've verified that c.slli64 already head priority so the check for 0 shamt added here isn't functional.

https://github.com/llvm/llvm-project/pull/133759


More information about the llvm-commits mailing list