]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Fix vid const vector expander for non-npatterns size steps
authorPatrick O'Neill <patrick@rivosinc.com>
Thu, 22 Aug 2024 06:48:24 +0000 (23:48 -0700)
committerPatrick O'Neill <patrick@rivosinc.com>
Tue, 27 Aug 2024 17:01:08 +0000 (10:01 -0700)
commitc89038c7ae8bba7160ae2963647ce90171b5dd2c
tree17c98f9200e5005b57cf957a988629cada597db8
parent37c21d4c6ad0afe2aacdd6384b9efa96f5754169
RISC-V: Fix vid const vector expander for non-npatterns size steps

Prior to this patch the expander would emit vectors like:
{ 0, 0, 5, 5, 10, 10, ...}
as:
{ 0, 0, 2, 2,  4,  4, ...}

This patch sets the step size to the requested value.

gcc/ChangeLog:

* config/riscv/riscv-v.cc (expand_const_vector): Fix STEP size in
expander.

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