https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113138

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #2)
> Will something then fold it further if it is actually ~X s< X (because the
> above would then fold it into ~X s< 0)?

Yes there is already a pattern for that:
/* Fold ~X op C as X op' ~C, where op' is the swapped comparison.  */

Which should handle the `~X u< signbit(X)` one too.

Reply via email to