]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Handle case when constant vector construction target rtx is not a register
authorPatrick O'Neill <patrick@rivosinc.com>
Tue, 20 Aug 2024 18:29:12 +0000 (11:29 -0700)
committerPatrick O'Neill <patrick@rivosinc.com>
Tue, 27 Aug 2024 17:01:18 +0000 (10:01 -0700)
commita3dc5d2100a3d17a2d67805de6d0373847bca780
treeb3be66b0a54fe44dfc9d072a26d0a73fba78a87f
parentac1f3a8901344759dc7c247d3749c74a0bb524b0
RISC-V: Handle case when constant vector construction target rtx is not a register

This manifests in RTL that is optimized away which causes runtime failures
in the testsuite. Update all patterns to use a temp result register if required.

gcc/ChangeLog:

* config/riscv/riscv-v.cc (expand_const_vector): Use tmp register if
needed.

Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
gcc/config/riscv/riscv-v.cc