[clang] [llvm] [RISCV][P-ext] Add packed multiply-parts intrinsics (PR #218875)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 26 08:55:02 PDT 2026


================
@@ -2295,7 +2299,27 @@ let Predicates = [HasStdExtP] in {
   def : Pat<(XLenVecI16VT (riscv_ppairoe_h GPR:$rs1, GPR:$rs2)),
             (PPAIROE_H GPR:$rs1, GPR:$rs2)>;
 
+  // Packed byte multiply-parts patterns.
+  def : PatMulParts<int_riscv_pmul_00, PMUL_H_B00, XLenVecI16VT, XLenVecI8VT>;
----------------
topperc wrote:

We should custom lower these to the RISCVISD::PMUL_HALVES_00/01/11 we already have.

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


More information about the cfe-commits mailing list