https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110264
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Pan Li <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:2f3eedccaff8b6c65869ed50a7733138740325ff commit r13-7482-g2f3eedccaff8b6c65869ed50a7733138740325ff Author: Juzhe-Zhong <juzhe.zh...@rivai.ai> Date: Fri Jun 16 16:02:31 2023 +0800 RISC-V: Fix VL operand bug in VSETVL PASS[PR110264] This patch fixes this issue happens on both GCC-13 and GCC-14. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110264 The testcase is too big and I failed to reduce it so I didn't append test into this patch. This patch should not only land into GCC-14 but also should backport to GCC-13. PR target/110264 gcc/ChangeLog: * config/riscv/riscv-vsetvl.cc (insert_vsetvl): Fix bug. (cherry picked from commit dd6e1cbac8682106c5167c105f2807014288b852)