https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83467
Bug ID: 83467 Summary: [7/8 Regression] ICE: in assign_by_spills, at lra-assigns.c:1476: unable to find a register to spill with -flive-range-shrinkage -m8bit-idiv Product: gcc Version: 8.0 Status: UNCONFIRMED Keywords: ice-checking Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 42905 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42905&action=edit reduced testcase This is a spill failure without -fschedule-insns. Compiler output: $ x86_64-pc-linux-gnu-gcc -O2 -flive-range-shrinkage -m8bit-idiv testcase.c testcase.c: In function 'b': testcase.c:11:1: error: unable to find a register to spill } ^ testcase.c:11:1: error: this is the insn: (insn 72 94 93 2 (parallel [ (set (reg/v:SI 165 [orig:115 e ] [115]) (ashiftrt:SI (reg/v:SI 165 [orig:115 e ] [115]) (reg:QI 166 [ g ]))) (clobber (reg:CC 17 flags)) ]) "testcase.c":6 578 {*ashrsi3_1} (expr_list:REG_DEAD (reg:QI 166 [ g ]) (expr_list:REG_UNUSED (reg:CC 17 flags) (nil)))) during RTL pass: reload testcase.c:11:1: internal compiler error: in assign_by_spills, at lra-assigns.c:1468 0x5c8f73 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) /repo/gcc-trunk/gcc/rtl-error.c:108 0xb660a6 assign_by_spills /repo/gcc-trunk/gcc/lra-assigns.c:1468 0xb6681e lra_assign() /repo/gcc-trunk/gcc/lra-assigns.c:1662 0xb61086 lra(_IO_FILE*) /repo/gcc-trunk/gcc/lra.c:2469 0xb04c69 do_reload /repo/gcc-trunk/gcc/ira.c:5443 0xb04c69 execute /repo/gcc-trunk/gcc/ira.c:5627 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. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-255776-checking-yes-rtl-df-extra-nobootstrap-nographite-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --disable-bootstrap --without-cloog --without-ppl --without-isl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld --with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-255776-checking-yes-rtl-df-extra-nobootstrap-nographite-amd64 Thread model: posix gcc version 8.0.0 20171218 (experimental) (GCC)