https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115703
--- Comment #2 from Robin Dapp <rdapp at gcc dot gnu.org> --- > I don't see anything wrong with this move on RTL. Maybe there is something > wrong going on the pass which is emitting the vsetivli instructions. Yes, indeed. With --param=vsetvl-strategy=simple the output is correct. Going to have a look.