[Bug target/112403] `s+ (a?-1:1)` and `a?s-1:s+1` produce two different code generation
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 29 07:06:15 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112403
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2026-06-29
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Component|middle-end |target
Keywords| |easyhack
--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Basically `t1_2(D) >= 0 ? 1 : -1` needs to be handled in the backend.
If I get some time I would look into it.
More information about the Gcc-bugs
mailing list