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

            Bug ID: 115949
           Summary: [SH] unrecognized insn in postreload
           Product: gcc
           Version: 14.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: olegendo at gcc dot gnu.org
  Target Milestone: ---

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

Attached reproducer compiled on sh-elf with 'sh-elf-gcc -c -O2 -m4-single
-mfsrra -mfsca -ffast-math' gives the following ICE:

bug.cpp:177:1: error: insn does not satisfy its constraints:
  177 | }
      | ^
(insn 393 90 394 8 (set (mem/c:SI (plus:SI (reg/f:SI 15 r15)
                (const_int 8 [0x8])) [11 %sfp+-56 S4 A32])
        (reg:SI 68 fr4)) "bug.cpp":124:29 189 {movsi_ie}
     (nil))
during RTL pass: postreload
bug.cpp:177:1: internal compiler error: in extract_constrain_insn, at
recog.cc:2713
0x673c85 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ../../gcc/gcc/rtl-error.cc:108
0x673cab _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ../../gcc/gcc/rtl-error.cc:118
0x6730b1 extract_constrain_insn(rtx_insn*)
        ../../gcc/gcc/recog.cc:2713
0xd2253d reload_cse_simplify_operands
        ../../gcc/gcc/postreload.cc:396
0xd2374c reload_cse_simplify
        ../../gcc/gcc/postreload.cc:179
0xd2374c reload_cse_regs_1
        ../../gcc/gcc/postreload.cc:227
0xd258ab reload_cse_regs
        ../../gcc/gcc/postreload.cc:65
0xd258ab execute
        ../../gcc/gcc/postreload.cc:2366

Reply via email to