https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126245
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2026-07-13
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #3 from Drea Pinski <pinskia at gcc dot gnu.org> ---
>Given we're expanding into a conditional move style sequence
So this might be both a target and middle-end issue.
if we have:
_2 = -_1;
_3 = _4 ? _2 : _1;
Then we should expand using negcc_optab. I had patches a long time ago to try
to use addcc, negcc, and notcc but I never got around to finishing them; the
basical one was rejected at the time.
The target still needs to implement the negcc_optab though.