https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97701
Bug ID: 97701 Summary: [10/11 Regression] aarch64: ICE in extract_constrain_insn since r10-4447-g095f78c6 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- For the following testcase: extern char a[][12][18][17][17]; extern short b[][12][18][17][17]; extern int c[][2][8][7]; short *d; void e(signed f, int g, char h, char i, char j) { for (int k = 648; k; k += f) for (short l; l < j; l += 9) for (long m = f + 6LL; m < (h ? h : i); m += 2) for (int n = 0; n < 16; n += 3LL) { for (int o = g; o; o++) a[k][l][m][n][o] = b[k][l][m][n][o] = d[k] ? 2 : 0; c[k][l][m][0] = 0; } } AArch64 GCC ICEs at -O3 since r10-4447-g095f78c62157124ad479a3f98b6995ced090b807. To reproduce: $ aarch64-elf-gcc -c test.c -O3 test.c: In function 'e': test.c:14:1: error: insn does not satisfy its constraints: 14 | } | ^ (insn 2496 2495 2497 5 (set (reg:DI 32 v0 [1415]) (lo_sum:DI (reg:DI 6 x6 [1416]) (symbol_ref/u:DI ("*.LC0") [flags 0x82]))) 1007 {add_losym_di} (nil)) during RTL pass: reload test.c:14:1: internal compiler error: in extract_constrain_insn, at recog.c:2212 0xd1ab2f _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) /home/alecop01/toolchain/src/gcc/gcc/rtl-error.c:108 0xd1ab60 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) /home/alecop01/toolchain/src/gcc/gcc/rtl-error.c:118 0xcec957 extract_constrain_insn(rtx_insn*) /home/alecop01/toolchain/src/gcc/gcc/recog.c:2212 0xbbe58d check_rtl /home/alecop01/toolchain/src/gcc/gcc/lra.c:2038 0xbc3451 lra(_IO_FILE*) /home/alecop01/toolchain/src/gcc/gcc/lra.c:2447 0xb76cff do_reload /home/alecop01/toolchain/src/gcc/gcc/ira.c:5725 0xb76cff execute /home/alecop01/toolchain/src/gcc/gcc/ira.c:5911 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.