[RISCV] Add tests showing incorrect BUILD_VECTOR lowering
authorFraser Cormack <fraser@codeplay.com>
Thu, 14 Apr 2022 12:03:56 +0000 (13:03 +0100)
committerFraser Cormack <fraser@codeplay.com>
Tue, 19 Apr 2022 06:00:48 +0000 (07:00 +0100)
commit00537946aa29928894ba140687de1b6f9494e44d
treeee4eeb3b3c04d0224400de38a825f0aae877acaa
parent7f97ac94f713b6d899a514589a8517d1c1c0081d
[RISCV] Add tests showing incorrect BUILD_VECTOR lowering

These tests both use vector constants misidentified as VID sequences.
Because the initial run of elements has a zero step, the elements are
skipped until such a step can be identified. The bug is that the skipped
elements are never validated, even though the computed step is
incompatible across the entire sequence.

A fix will follow in a subseqeuent patch.

Reviewed By: craig.topper

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