https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118067

            Bug ID: 118067
           Summary: [15 Regression] ICE: in lra_split_hard_reg_for, at
                    lra-assigns.cc:1860 (unable to find a register to
                    spill) {*lshrhi3_1} with -O -fno-split-wide-types
                    -mavx512f
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          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 59878
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59878&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O -fno-split-wide-types -mavx512f testcase.c
testcase.c: In function 'foo':
testcase.c:13:1: error: unable to find a register to spill
   13 | }
      | ^
testcase.c:13:1: error: this is the insn:
(insn 9 192 10 2 (parallel [
            (set (reg:HI 99 [ _2 ])
                (lshiftrt:HI (reg:HI 337)
                    (const_int 1 [0x1])))
            (clobber (reg:CC 17 flags))
        ]) "testcase.c":10:8 1215 {*lshrhi3_1}
     (expr_list:REG_DEAD (reg:HI 337)
        (expr_list:REG_UNUSED (reg:CC 17 flags)
            (nil))))
during RTL pass: reload
testcase.c:13:1: internal compiler error: in lra_split_hard_reg_for, at
lra-assigns.cc:1860
0x2e10b21 internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517
0xef73a7 fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostic.cc:1722
0x869c0d _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /repo/gcc-trunk/gcc/rtl-error.cc:108
0x1454276 lra_split_hard_reg_for()
        /repo/gcc-trunk/gcc/lra-assigns.cc:1860
0x144d098 lra(_IO_FILE*, int)
        /repo/gcc-trunk/gcc/lra.cc:2525
0x13f6a2f do_reload
        /repo/gcc-trunk/gcc/ira.cc:5977
0x13f6a2f execute
        /repo/gcc-trunk/gcc/ira.cc:6165
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
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-20241216112250-r15-6286-g7f4f49687b1f1b-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/15.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 --with-cloog --with-ppl --with-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 --enable-libsanitizer
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-20241216112250-r15-6286-g7f4f49687b1f1b-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.0 20241216 (experimental) (GCC)

Reply via email to