https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111751
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- If you add `-fno-vect-cost-model` to aarch64 compiling, then it uses SVE and does not optimize to just `return 0`.
pinskia at gcc dot gnu.org via Gcc-bugs Mon, 09 Oct 2023 20:36:28 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111751
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- If you add `-fno-vect-cost-model` to aarch64 compiling, then it uses SVE and does not optimize to just `return 0`.