[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


================
@@ -3146,6 +3195,42 @@ let append Predicates = [IsRV64] in {
   def : PatMulPartsAcc<riscv_pmaccsu_halves_00, PMACCSU_W_H00, v2i32, v4i16>;
   def : PatMulPartsAcc<riscv_pmaccsu_halves_11, PMACCSU_W_H11, v2i32, v4i16>;
 
+  // Packed multiply high accumulate with byte index patterns (v4i16 form)
+  def : Pat<(v4i16 (riscv_mhacc_h_b0 (v4i16 GPR:$rd),
+                                    (v4i16 GPR:$rs1),
----------------
topperc wrote:

Needs to be indented 1 more space

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


More information about the cfe-commits mailing list