https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128468
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |easyhack
Status|UNCONFIRMED |NEW
Last reconfirmed| |2026-11-05
Ever confirmed|0 |1
--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
The general rule for this is:
t > CST ? t : CST - t;
The following has to be true `(t & CST) == 0` and t is a signed type. Then this
can be transformed into `max(t, CST - t)`.