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

            Bug ID: 80433
           Summary: [CRIS] ICE at -O2: unrecognized insn (post_inc on acr)
                    building glibc sha512.c
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gcc at davidrobins dot net
  Target Milestone: ---

Created attachment 41202
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41202&action=edit
Preprocessed sha512.c from glibc.

Compiling attached preprocessed glibc (2.9) sha512.c as:

crisv32-linux-gnu-gcc sha512.i -S -O2 -o sha512.S

results in:

sha512.c: In function _sha512_process_block_:
sha512.c:206:1: error: unrecognizable insn:
 }
 ^
(insn 652 650 648 9 (set (reg:DI 10 r10)
        (mem:DI (post_inc:SI (reg:SI 15 acr)) [1 MEM[base: _195, offset: 0B]+0
S8 A8])) "sha512.c":165 -1
     (expr_list:REG_INC (reg:SI 15 acr)
        (nil)))
sha512.c:206:1: internal compiler error: in extract_insn, at recog.c:2311
0xa7ffd8 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ../../gcc-svn/gcc/rtl-error.c:108
0xa80009 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ../../gcc-svn/gcc/rtl-error.c:116
0xa4a861 extract_insn(rtx_insn*)
        ../../gcc-svn/gcc/recog.c:2311
0xa4a8d1 extract_insn_cached(rtx_insn*)
        ../../gcc-svn/gcc/recog.c:2201
0x7d4fd7 cleanup_subreg_operands(rtx_insn*)
        ../../gcc-svn/gcc/final.c:3152
0xa744ce reload(rtx_insn*, int)
        ../../gcc-svn/gcc/reload1.c:1235
0x92211d do_reload
        ../../gcc-svn/gcc/ira.c:5469
0x92211d execute
        ../../gcc-svn/gcc/ira.c:5641
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

No error at lower optimization levels.

I have also attached the .271r.ira and .272r.reload pass output files.

Output of crisv32-linux-gnu-gcc -v:

Using built-in specs.
COLLECT_GCC=crisv32-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/opt/cross/cris/6.3/libexec/gcc/crisv32-linux-gnu/7.0.1/lto-wrapper
Target: crisv32-linux-gnu
Configured with: ../gcc-svn/configure --prefix=/opt/cross/cris/6.3
--without-headers --target=crisv32-linux-gnu --enable-languages=c,c++
--disable-multilib : (reconfigured) ../gcc-svn/configure
--prefix=/opt/cross/cris/6.3 --target=crisv32-linux-gnu
--enable-languages=c,c++ --disable-multilib : (repeat same a few more times)
Thread model: posix
gcc version 7.0.1 20170411 (experimental) (GCC)

Reply via email to