https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94497 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So there might be some jump threading going on which is causing this issue. There might already be a bug about that case too.