https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113302
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This should also optimize to that: ``` int j(int x) { int t = x == -1; int t1 = x == 1; return t | -t1; } ```
pinskia at gcc dot gnu.org via Gcc-bugs Tue, 09 Jan 2024 22:05:58 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113302
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This should also optimize to that: ``` int j(int x) { int t = x == -1; int t1 = x == 1; return t | -t1; } ```