[clang] [llvm] [RISCV][P-ext] Add scalar ssh1sadd intrinsic (PR #239234)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 5 07:53:58 PST 2026


================
@@ -3343,6 +3349,9 @@ let append Predicates = [IsRV64] in {
 
   def : PatGpr<bitreverse, REV_RV64>;
 
+  // 32-bit shift-add pattern
+  def : PatGprGpr<riscv_ssh1sadd, PSSH1SADD_W>;
----------------
topperc wrote:

This doesn't look right. It's selecting an i64 type to an vector operation. We need to insert the i32 into a v2i32 vector and extract the lower element.

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


More information about the cfe-commits mailing list