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

            Bug ID: 103928
           Summary: [12] ICE in get_insn_template, at final.c:2050
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: manuel.lauss at googlemail dot com
  Target Milestone: ---

Created attachment 52132
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52132&action=edit
compressed unreduced preprocessed testfile

The attached unreduced testcase, extracted from xxHash, ICEs on trunk.
march=bdver4 seems essential to trigger it:

# gcc -O2 -march=bdver4 -E -o xxhash.i xxhash.c
# gcc -O2 -march=bdver4 -c xxhash.i
during RTL pass: final
In file included from xxhash.c:43:
xxhash.h: In function ‘XXH_mult64to128’:
xxhash.h:3360:1: internal compiler error: in get_insn_template, at final.c:2050
 3360 | }
      | ^
0x7f19cd0cd2b6 __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x7f19cd0cd374 __libc_start_main_impl
        ../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.


gcc version 12.0.0 20220105 (experimental) (Gentoo 12.0.0_pre9999 p2, commit
4ce3bd7993bc8413197e07c4f54052e4ecaeccaa)

Reply via email to