[llvm] [RISCV][llvm] Preliminary P extension codegen support (PR #162668)

Brandon Wu via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 26 22:55:35 PDT 2025


================
@@ -809,6 +809,7 @@ struct RISCVOperand final : public MCParsedAsmOperand {
 
   bool isSImm5() const { return isSImm<5>(); }
   bool isSImm6() const { return isSImm<6>(); }
+  bool isSImm8() const { return isSImm<8>(); }
----------------
4vtomat wrote:

Because I changed `simm8_unsigned` to be `RISCVSImmLeafOp` rather than just `RISCVOp` for pattern match

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


More information about the llvm-commits mailing list