https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110643
--- Comment #23 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note even though the optimization was in GCC 11+ (r11-2550-gca2b8c082c4f added it), only GCC 13+ hits it in this case as GCC 13 lowers the vector comparison and uses the scalar for the one element signed 64bit long. I have not looked into which revision changed the behavior there though. But as I mentioned this is not a GCC bug really.