[RISCV] Expand scalable-vector truncstores and extloads
authorFraser Cormack <fraser@codeplay.com>
Wed, 31 Mar 2021 11:51:03 +0000 (12:51 +0100)
committerFraser Cormack <fraser@codeplay.com>
Mon, 5 Apr 2021 16:03:45 +0000 (17:03 +0100)
commit3f0df4d7b0269623cfcd0ef6272e6a3a2ad9066d
tree8771c6fdf6f1e4403952171734125ee2c42f6f68
parent803b79221edfc2517e6bfc373e5f55609565b0e4
[RISCV] Expand scalable-vector truncstores and extloads

Caught in internal testing, these operations are assumed legal by
default, even for scalable vector types. Expand them back into separate
truncations and stores, or loads and extensions.

Also add explicit fixed-length vector tests for these operations, even
though they should have been correct already.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D99654
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/extload-truncstore.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-extload-truncstore.ll [new file with mode: 0644]