https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115115
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So from a point of view of float to int conversion, both are valid for out of range values. Now it might that we are lowering it to a float to int conversion and then constant folding that way. If so the issue is this might