https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90275
--- Comment #25 from David Binderman <dcb314 at hotmail dot com> --- This C source code: $ more bug761.c long a; int b, c, e; signed char d; void f() { long long g = 105230154306549745590; b = (c ?: (d %= 11 * g)) + (e &= g += c); a = 5; for (; a <= 8;) { g = b != d ? e : g || (5 ? e = 1 : 0); a %= 0 < 0 / 0; } } pi@raspberrypi:~/creduce $ on recent gcc trunk on ARM and flag -O2, does this: $ ../gcc/results/bin/arm-linux-gnueabihf-gcc -c -w -O2 bug761.c during RTL pass: cse_local bug761.c: In function \u2018f\u2019: bug761.c:12:1: internal compiler error: in insert_regs, at cse.c:1113 12 | } | ^ 0x16cd73f insert_regs(rtx_def*, table_elt*, int) ../../trunk/gcc/cse.c:1113 0x16c9d9f cse_insn(rtx_insn*) ../../trunk/gcc/cse.c:5926 ... $ ../gcc/results/bin/arm-linux-gnueabihf-gcc -v Using built-in specs. COLLECT_GCC=../gcc/results/bin/arm-linux-gnueabihf-gcc COLLECT_LTO_WRAPPER=/home/pi/gcc/results.20210928/libexec/gcc/arm-linux-gnueabihf/12.0.0/lto-wrapper Target: arm-linux-gnueabihf Configured with: ../trunk/configure --prefix=/home/pi/gcc/results.20210928 --disable-bootstrap --disable-multilib --disable-werror --with-pkgversion=9cfb95f9b92326e8 --enable-checking=yes --enable-languages=c,c++,fortran --with-cpu=cortex-a72 --with-fpu=neon-fp-armv8 --with-float=hard --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20210928 (experimental) (9cfb95f9b92326e8) I don't have a git revision where it works ok. Sorry.