[SVE] Fix invalid INSERT_SUBVECTOR creation when lowering fixed length fp-int convers...
authorPaul Walker <paul.walker@arm.com>
Sat, 21 Jan 2023 13:38:58 +0000 (13:38 +0000)
committerPaul Walker <paul.walker@arm.com>
Tue, 24 Jan 2023 12:29:25 +0000 (12:29 +0000)
commit3f94a38388fd07f4436da97ddef6abb48ebd0554
treeab430da1908817c6c5a1e2f56fa61c0b735c5cd8
parent0f8b995b63620c3eb57610f958f66691d38d7185
[SVE] Fix invalid INSERT_SUBVECTOR creation when lowering fixed length fp-int conversions.

The original logic resulted in inserting an integer vector into
a floating point one and vice versa. Patch also adds the missing
assert that would have caught the issue.

Differential Revision: https://reviews.llvm.org/D142303
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/sve-streaming-mode-fixed-length-int-to-fp.ll