https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100082
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Looks like it is jump threading differences between GCC 11 and GCC 12 which fixes this.
pinskia at gcc dot gnu.org via Gcc-bugs Thu, 17 Aug 2023 20:54:05 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100082
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Looks like it is jump threading differences between GCC 11 and GCC 12 which fixes this.