https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114546
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-04-01 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- clang/LLVM (and GCC) does not handle this either: ``` int a, b, c; void test(int m, int n) { int t = m ^ 100; n = n / t; a = m + 2; b = ~m; c = (b | n | a)!=0; } ``` Which GCC optimizes (maybe too early to) the original code to.