https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116925
Bug ID: 116925 Summary: [15 regression] ICE when building newton-3.14 with -march=znver2 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- Created attachment 59253 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59253&action=edit dgAABBPolygonSoup.cpp.ii.xz Originally reported downstream in Gentoo at https://bugs.gentoo.org/940610. ``` $ g++ ./sdk/CMakeFiles/NewtonObj.dir/dgCore/dgAABBPolygonSoup.cpp.ii -march=znver2 -O2 -ffloat-store /var/tmp/portage/dev-games/newton-3.14/work/newton-dynamics-newton-3.14/sdk/dgCore/dgAABBPolygonSoup.cpp: In member function ‘virtual void dgAABBPolygonSoup::ForAllSectorsRayHit(const dgFastRayTest&, dgFloat32, dgRayIntersectCallback, void*) const’: /var/tmp/portage/dev-games/newton-3.14/work/newton-dynamics-newton-3.14/sdk/dgCore/dgAABBPolygonSoup.cpp:1187:1: error: unrecognizable insn: 1187 | } | ^ (insn 996 998 122 3 (set (reg:V4SF 297) (unspec:V4SF [ (mem:V4SF (plus:DI (reg/f:DI 19 frame) (const_int -7520 [0xffffffffffffe2a0])) [28 S16 A128]) (reg:V4SF 294) ] UNSPEC_IEEE_MAX)) "/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/xmmintrin.h":259:10 -1 (expr_list:REG_EQUIV (mem:V4SF (plus:DI (reg/f:DI 19 frame) (const_int -7328 [0xffffffffffffe360])) [28 S16 A128]) (expr_list:REG_DEAD (reg:V4SF 294) (nil)))) during RTL pass: ira /var/tmp/portage/dev-games/newton-3.14/work/newton-dynamics-newton-3.14/sdk/dgCore/dgAABBPolygonSoup.cpp:1187:1: internal compiler error: in extract_insn, at recog.cc:2882 0x5bd4dd881fc0 internal_error(char const*, ...) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:517 0x5bd4dd88215b fancy_abort(char const*, int, char const*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic.cc:1570 0x5bd4dd0a7d7e _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/rtl-error.cc:108 0x5bd4dd0a866b _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/rtl-error.cc:116 0x5bd4dc4f7379 extract_insn(rtx_insn*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/recog.cc:2882 0x5bd4de069bf5 ira_remove_insn_scratches(rtx_insn*, bool, _IO_FILE*, rtx_def* (*)(rtx_def*)) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ira.cc:5385 0x5bd4de069bf5 remove_scratches /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ira.cc:5429 0x5bd4de069bf5 ira /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ira.cc:5761 0x5bd4de069bf5 execute /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ira.cc:6121 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. ``` --- ``` Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/15/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/15 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/15/python --enable-objc-gc --enable-languages=c,c++,d,go,objc,obj-c++,fortran,ada,m2,rust --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=yes,extra,rtl --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened 15.0.9999 p, commit 4dffefc137f5ba6524cdb6eb598313646c5df6c8' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --enable-libada --disable-cet --disable-systemtap --enable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --with-isl --disable-isl-version-check --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --disable-fixincludes --with-build-config='bootstrap-O3 bootstrap-lto' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20241001 (experimental) 3e1bd6470e4deba1a3ad14621037098311ad1350 (Gentoo Hardened 15.0.9999 p, commit 4dffefc137f5ba6524cdb6eb598313646c5df6c8) ```