------- Comment #1 from bonzini at gnu dot org 2009-04-10 15:25 ------- Another testcase, this one failing at -O2:
void foo (unsigned int n) { int i, j = -1; for (i = 0; i < 10 && j < 0; i++) if ((1UL << i) == n) j = i; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39718