https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103202
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This seems jump threading related but I can't tell how. -fno-tree-vrp is enough to workaround the bug but I don't have anything more than that.