https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108574
--- Comment #2 from Zhendong Su <zhendong.su at inf dot ethz.ch> --- Another likely related test case. Compiler Explorer: https://godbolt.org/z/G514hnMeY [537] % gcctk -O3 small.c [538] % timeout -s 9 5 ./a.out Killed [539] % gcctk -O1 small.c [540] % ./a.out [541] % [541] % cat small.c int a = 3557301289, d; char b, f; unsigned short c = 241; short e, g; static void h() { if (!a) goto i; b = a; for (; a < 2; a = b) { unsigned short j; if (c || !g) { j = c; i: e = j; } f = j; d = ~(f & ~2880764155); while (d > -2316069) ; } } int main() { h(); return 0; }