https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78438
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-11-21 CC| |jakub at gcc dot gnu.org Target Milestone|--- |7.0 Summary|incorrect comparison |[7 Regression] incorrect |optimization |comparison optimization Ever confirmed|0 |1 --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Started with r242414. Simplified testcase: char a = 0; int b = 197412621; __attribute__ ((noinline, noclone)) void foo () { a = 0 > (short) (b >> 11); } int main () { asm volatile ("" : : : "memory"); foo (); if (a != 0) __builtin_abort (); return 0; }