[llvm] [llvm][RISCV] Support P Extension CodeGen (PR #190303)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 2 21:21:23 PDT 2026
================
@@ -1796,10 +1796,26 @@ let Predicates = [HasStdExtP] in {
// Basic 8-bit arithmetic patterns
def : PatGprGpr<add, PADD_B, XLenVecI8VT>;
def : PatGprGpr<sub, PSUB_B, XLenVecI8VT>;
+ def : Pat<(XLenVecI8VT
+ (add (XLenVecI8VT GPR:$rs1),
----------------
topperc wrote:
The inner type casts shouldn't be needed. Tablegen can infer it from the out casts.
https://github.com/llvm/llvm-project/pull/190303
More information about the llvm-commits
mailing list