[llvm] [RISCV] Select add(vec, splat(scalar)) to PADD_*S for P extension (PR #190303)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 2 22:35:53 PDT 2026
================
@@ -625,6 +625,29 @@ define <2 x i16> @test_non_const_splat_i16(i16 %elt) {
ret <2 x i16> %splat
}
+; Test add(vec, splat(scalar)) pattern
+define <4 x i8> @test_padd_bs_from_scalar_splat(<4 x i8> %a, i8 %b) {
----------------
sihuan wrote:
I’ve removed that part and switched to names like `@test_padd_bs_splat_lhs`. Does this look good?
https://github.com/llvm/llvm-project/pull/190303
More information about the llvm-commits
mailing list