https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109605
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Wojciech Mula from comment #3) > This is somehow related. I needed to generate the particular procedure > without any vector instruction (the surrounding code is free to RVV > instructions). No it is unrelated. See PR 119477. The best way to turn off RVV for a function is to use the target attributes; though not fully supported currently for RISCV, see PR 110812 .