[clang] [llvm] [RISCV][P-ext] Add packed multiply high accumulate with byte/halfword index intrinsics (PR #224261)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 17 10:05:07 PDT 2026


================
@@ -2980,6 +2995,40 @@ let append Predicates = [IsRV32] in {
   def : Pat<(XLenVT (riscv_nclipu XLenVT:$lo, XLenVT:$hi, timm:$imm)),
             (NCLIPIU (BuildGPRPair GPR:$lo, GPR:$hi), timm:$imm)>;
 
+  // 16-bit multiply high accumulate with byte index patterns
+  def : Pat<(XLenVecI16VT (riscv_mhacc_h_b0 (XLenVecI16VT GPR:$rd),
+                          (XLenVecI16VT GPR:$rs1),
----------------
topperc wrote:

This isn't formatted correctly. This should line up with the `(XLenVecI16VT GPR:$rd)` on the previous line

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


More information about the cfe-commits mailing list