https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117186
Mikael Pettersson <mikpelinux at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpelinux at gmail dot com --- Comment #4 from Mikael Pettersson <mikpelinux at gmail dot com> --- With the following test case I can reproduce the wrong-code with gcc-10.5 and newer, but not with gcc-9.5/8.5/7.5. > cat pr117186.c int __attribute__((__noinline__, __noclone__, __noipa__)) lx (int oi, int mb) { return (oi < mb) < (mb < oi); } int a = -1, b = 0; int main (void) { if (lx (a, b) != 0) __builtin_abort (); return 0; }