aboutsummaryrefslogtreecommitdiff
path: root/libgm2
diff options
context:
space:
mode:
authorJin Ma <jinma@linux.alibaba.com>2025-01-13 11:15:55 -0700
committerJeff Law <jlaw@ventanamicro.com>2025-01-13 11:17:23 -0700
commit8d577a01cdbe02a23724b710b579b7811c983c33 (patch)
tree84a1dae9bc580cd32228fadcbebe6f1e1e871c3f /libgm2
parent7102620067eebfbfb895dccd5ddd26870178c83f (diff)
downloadgcc-8d577a01cdbe02a23724b710b579b7811c983c33.zip
gcc-8d577a01cdbe02a23724b710b579b7811c983c33.tar.gz
gcc-8d577a01cdbe02a23724b710b579b7811c983c33.tar.bz2
RISC-V: Fix the result error caused by not updating ratio when using "use_max_sew" to merge vsetvl
When the vsetvl instructions of the two RVV instructions are merged using "use_max_sew", it is possible to update the sew of prev if prev.sew < next.sew, but keep the original ratio, which is obviously wrong. when the subsequent instructions are equal to the wrong ratio, it is possible to generate the wrong "vsetvli zero,zero" instruction, which will lead to unknown avl. gcc/ChangeLog: * config/riscv/riscv-vsetvl.cc (demand_system::use_max_sew): Also set the ratio for PREV. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/base/bug-10.c: New test.
Diffstat (limited to 'libgm2')
0 files changed, 0 insertions, 0 deletions