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

            Bug ID: 125611
           Summary: ICE: in extract_insn, at recog.cc:2894 (unrecognizable
                    insn) with -O -mssse3
           Product: gcc
           Version: 17.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 64629
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64629&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O -mssse3 testcase.c 
testcase.c: In function 'foo':
testcase.c:11:1: error: unrecognizable insn:
   11 | }
      | ^
(insn 7 6 8 2 (set (reg:V8HI 104)
        (truncate:V8HI (lshiftrt:V8SI (plus:V8SI (lshiftrt:V8SI (mult:V8SI
(sign_extend:V8SI (reg:V8HI 105))
                            (sign_extend:V8SI (mem:V8HI (plus:DI (reg/f:DI 98 [
u.0_1 ])
                                        (const_int 16 [0x10])) [2 u.0_1->v[1]+0
S16 A8])))
                        (const_int 14 [0xe]))
                    (const_vector:V8HI [
                            (const_int 1 [0x1]) repeated x8
                        ]))
                (const_int 1 [0x1])))) "testcase.c":10:14 -1
     (nil))
during RTL pass: vregs
testcase.c:11:1: internal compiler error: in extract_insn, at recog.cc:2894
0x2d1f3bd internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
0xe3c0b9 fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostics/context.cc:1813
0x89a88c _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /repo/gcc-trunk/gcc/rtl-error.cc:108
0x89a909 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        /repo/gcc-trunk/gcc/rtl-error.cc:116
0x889357 extract_insn(rtx_insn*)
        /repo/gcc-trunk/gcc/recog.cc:2894
0x11dfc7e instantiate_virtual_regs_in_insn
        /repo/gcc-trunk/gcc/function.cc:1611
0x11dfc7e instantiate_virtual_regs
        /repo/gcc-trunk/gcc/function.cc:1987
0x11dfc7e execute
        /repo/gcc-trunk/gcc/function.cc:2034
/repo/gcc-trunk/binary-trunk-20260604174045-r17-1350-gcce4e9c42fb7c8-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/17.0.0/cc1
-quiet -iprefix
/repo/gcc-trunk/binary-trunk-20260604174045-r17-1350-gcce4e9c42fb7c8-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../lib/gcc/x86_64-pc-linux-gnu/17.0.0/
testcase.c -quiet -dumpdir a- -dumpbase testcase.c -dumpbase-ext .c -mssse3
-mtune=generic -march=x86-64 -O -o /tmp/ccQRs5dz.s
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