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

            Bug ID: 117053
           Summary: [15 Regression] ICE in extract_insn building glibc
                    testsuite tst-svc2.c
           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: jsm28 at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---
            Target: i?86-*-*

Created attachment 59303
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59303&action=edit
preprocessed source

The recent commit

commit 37554bacfd38b1466278b529d9e70a44d7b1b909
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Mon Oct 7 10:50:39 2024 +0200

    ssa-math-opts, i386: Improve spaceship expansion [PR116896]

introduced an ICE building the glibc testsuite for i486-linux-gnu (there's also
an ICE for i586-linux-gnu, probably the same though I didn't investigate /
bisect it separately). Build the attached test with -m32 -march=i486 -O2 (I was
testing with an x86_64-linux-gnu compiler with those options including -m32).

tst-svc2.c: In function 'compare':
tst-svc2.c:26:1: error: unrecognizable insn:
   26 | }
      | ^
(insn 20 19 21 2 (set (reg:SI 107)
        (zero_extend:SI (reg:QI 106))) -1
     (nil))
during RTL pass: vregs
tst-svc2.c:26:1: internal compiler error: in extract_insn, at recog.cc:2882
0x24b6a50 internal_error(char const*, ...)
       
/notnfs/josmyers/glibc-manual/src/gcc/gcc/diagnostic-global-context.cc:517
0x956b91 fancy_abort(char const*, int, char const*)
        /notnfs/josmyers/glibc-manual/src/gcc/gcc/diagnostic.cc:1617
0x7ec8e6 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /notnfs/josmyers/glibc-manual/src/gcc/gcc/rtl-error.cc:108
0x7ec902 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        /notnfs/josmyers/glibc-manual/src/gcc/gcc/rtl-error.cc:116
0x7eadf6 extract_insn(rtx_insn*)
        /notnfs/josmyers/glibc-manual/src/gcc/gcc/recog.cc:2882
0xca9015 instantiate_virtual_regs_in_insn
        /notnfs/josmyers/glibc-manual/src/gcc/gcc/function.cc:1612
0xca9015 instantiate_virtual_regs
        /notnfs/josmyers/glibc-manual/src/gcc/gcc/function.cc:1995
0xca9015 execute
        /notnfs/josmyers/glibc-manual/src/gcc/gcc/function.cc:2042
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.

Reply via email to