[Bug middle-end/68000] Suboptimal ternary operator codegen
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 3 04:11:31 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68000
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So take:
p->x + 1 == p->y
If p->x == 255 and p->y == 0. The above will be false due to C integer
promotion rules.
The other two testcases have the case where p->x == 255 and p->y == 0 will be
true. Basically foo is not the same as the other two.
More information about the Gcc-bugs
mailing list