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

            Bug ID: 118122
           Summary: [15 Regression] ICE: in extract_insn, at recog.cc:2869
                    (unrecognizable insn) (ior:DI (reg:SI) (reg:DI)) with
                    -O -fno-tree-ter -fno-forward-propagate
           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: riscv64-unknown-linux-gnu

Created attachment 59916
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59916&action=edit
reduced testcase

Compiler output:
$ riscv64-unknown-linux-gnu-gcc -O -fno-tree-ter -fno-forward-propagate
testcase.c
testcase.c: In function 'foo':
testcase.c:8:1: error: unrecognizable insn:
    8 | }
      | ^
(insn 20 19 23 2 (set (reg:SI 10 a0 [138])
        (ior:DI (reg:SI 10 a0 [orig:143 s ] [143])
            (reg:DI 15 a5 [144]))) "testcase.c":6:5 -1
     (nil))
during RTL pass: split2
testcase.c:8:1: internal compiler error: in extract_insn, at recog.cc:2869
0x35e0561 internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517
0x10b4b95 fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostic.cc:1722
0xb6d60e _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /repo/gcc-trunk/gcc/rtl-error.cc:108
0xb6d68b _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        /repo/gcc-trunk/gcc/rtl-error.cc:116
0xb5e49c extract_insn(rtx_insn*)
        /repo/gcc-trunk/gcc/recog.cc:2869
0x17a6e24 extract_insn_cached(rtx_insn*)
        /repo/gcc-trunk/gcc/recog.cc:2758
0x13fbe26 cleanup_subreg_operands(rtx_insn*)
        /repo/gcc-trunk/gcc/final.cc:3055
0x17a4788 split_insn
        /repo/gcc-trunk/gcc/recog.cc:3498
0x17ab8a7 split_all_insns()
        /repo/gcc-trunk/gcc/recog.cc:3566
0x17ab958 execute
        /repo/gcc-trunk/gcc/recog.cc:4490
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