[RISCV] Use vslide1down for i64 insertelt on RV32.
authorCraig Topper <craig.topper@sifive.com>
Wed, 26 Oct 2022 16:26:58 +0000 (09:26 -0700)
committerCraig Topper <craig.topper@sifive.com>
Wed, 26 Oct 2022 16:43:12 +0000 (09:43 -0700)
commita61b74889f54925949e94e68fd7548a0aa3cf709
treec3a89c532847f410615930dfa11264210648796c
parent14fb4040e2b6d8c21d109af565edd5d0bc0f21d1
[RISCV] Use vslide1down for i64 insertelt on RV32.

Instead of using vslide1up, use vslide1down and build the other
direction. This avoids the overlap constraint early clobber of
vslide1up.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D136735
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-bitcast.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fp-bitcast.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-insert.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-unaligned.ll
llvm/test/CodeGen/RISCV/rvv/insertelt-int-rv32.ll