https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115703
--- Comment #3 from Robin Dapp <rdapp at gcc dot gnu.org> --- For me this doesn't occur on the trunk anymore and I bisected the working change to: r15-3459-gcbea72b265e4c9 Author: Raphael Moreira Zinsly <rzin...@ventanamicro.com> Date: Wed Sep 4 17:21:24 2024 -0600 [PATCH 1/3] RISC-V: Improve codegen for negative repeating large constants Improve handling of constants where its upper and lower 32-bit halves are the same and have negative values. e.g. for: So it wasn't working since late-combine and started working again with the above commit. As the original issue seems to be related to vsetvl placement I'm inclined to believe that the above just causes it to be latent. So back to checking vsetvl with the original failing commit.