[llvm] [RISCV] Use vwadd.vx for splat vector with extension (PR #87249)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 8 05:46:46 PDT 2024
================
@@ -1466,3 +1466,159 @@ define <vscale x 2 x i32> @vwadd_wv_disjoint_or(<vscale x 2 x i32> %x.i32, <vsca
%or = or disjoint <vscale x 2 x i32> %x.i32, %y.i32
ret <vscale x 2 x i32> %or
}
+
+define <vscale x 8 x i64> @vwadd_vx_splat_zext(<vscale x 8 x i32> %va, i32 %b) {
----------------
lukel97 wrote:
I think these test cases where we're extending to the next power of two will already generate some form of vwadd via the tablegen patterns. But it looks like the codegen is slightly different. Do you think you could maybe add the tests in an earlier commit and rebase so we can see the diff.
https://github.com/llvm/llvm-project/pull/87249
More information about the llvm-commits
mailing list