https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56719
Ivan Sorokin <vanyacpp at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vanyacpp at gmail dot com --- Comment #8 from Ivan Sorokin <vanyacpp at gmail dot com> --- On the test code clang since 3.5 and before 9.0 does something very surprising. It optimizes (A > 0xffff || B > 0xffff) into (A | B) > 0xffff. I don't think this is what the reporter expected, but still is a potential optimization for GCC. See https://godbolt.org/z/WqPhbW