[SelectionDAG][RISCV] Add tests showing missed scalable-splat optimizations
authorFraser Cormack <fraser@codeplay.com>
Thu, 22 Jul 2021 16:06:51 +0000 (17:06 +0100)
committerFraser Cormack <fraser@codeplay.com>
Fri, 23 Jul 2021 05:58:16 +0000 (06:58 +0100)
commit99ed6ce2bdf062db9277a309b7c307fd22fadf9d
tree77a82f655479fc9f7c02526b1a28acf237971717
parentc698be47ff8cfa337079fc14947056f867676591
[SelectionDAG][RISCV] Add tests showing missed scalable-splat optimizations

These tests show missed opportunities in the SelectionDAG layer when
dealing with scalable-vector splats. All of these are handled for the
equivalent `ISD::BUILD_VECTOR` code, and the tests have largely been
translated from the equivalent X86 tests.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D106574
llvm/test/CodeGen/RISCV/rvv/combine-splats.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/urem-seteq-vec.ll [new file with mode: 0644]