https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110264
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Pan Li <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:dd6e1cbac8682106c5167c105f2807014288b852 commit r14-1898-gdd6e1cbac8682106c5167c105f2807014288b852 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.