[RISCV] Add tests covering shuffles which can be optimized
authorFraser Cormack <fraser@codeplay.com>
Tue, 3 Aug 2021 16:02:43 +0000 (17:02 +0100)
committerFraser Cormack <fraser@codeplay.com>
Mon, 9 Aug 2021 09:20:42 +0000 (10:20 +0100)
commitb5c608c37775dafa5e1a9a07963ab03ee080493d
treea68baa0f3e461ff324fa5f3786f165676b634609
parent8813bc02b40c90eeca0b30ec46aa898bd49e1522
[RISCV] Add tests covering shuffles which can be optimized

These shuffles all take the form of a "splat" of the LHS and/or RHS to
some degree, with one or two elements needing patched up afterwards. We
currently lower all of these to full LHS/RHS vector-index shuffles with
vrgather.vv.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D107447
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int-shuffles.ll