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

            Bug ID: 119357
           Summary: [15 regression] ICE when building highway-1.0.7 on x86
           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: sjames at gcc dot gnu.org
  Target Milestone: ---

Created attachment 60807
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60807&action=edit
mask_test.cc.ii.xz

```
$ g++ -c mask_test.cc.ii -m32 -O2 -march=icelake-server
/var/tmp/portage/dev-cpp/highway-1.0.7-r1/work/highway-1.0.7/hwy/tests/mask_test.cc:
In function ‘void hwy::N_SSE4::TestAllTrueFalse::operator()(T, D) [with T =
unsigned char; D = hwy::N_SSE4::Simd<unsigned char, 16, 0>]’:
/var/tmp/portage/dev-cpp/highway-1.0.7-r1/work/highway-1.0.7/hwy/tests/mask_test.cc:157:3:
error: unrecognizable insn:
  157 |   }
      |   ^
(insn 242 151 154 23 (set (reg:CCZ 17 flags)
        (unspec:CCZ [
                (mem:V16QI (reg/f:SI 168 [ _42 ]) [0 MEM[(const __m128i *
{ref-all})_42]+0 S16 A128])
                (mem:V16QI (reg/f:SI 168 [ _42 ]) [0 MEM[(const __m128i *
{ref-all})_42]+0 S16 A128])
            ] UNSPEC_PTEST))
"/var/tmp/portage/dev-cpp/highway-1.0.7-r1/work/highway-1.0.7/hwy/tests/mask_test.cc":154:12
discrim 4 -1
     (nil))
during RTL pass: ira
/var/tmp/portage/dev-cpp/highway-1.0.7-r1/work/highway-1.0.7/hwy/tests/mask_test.cc:157:3:
internal compiler error: in extract_insn, at recog.cc:2882
0x560e2ec73bce internal_error(char const*, ...)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:517
0x560e2ec73d71 fancy_abort(char const*, int, char const*)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic.cc:1722
0x560e2e41abf8 _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
0x560e2e41b6fa _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
0x560e2d8d7365 extract_insn(rtx_insn*)
        /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/recog.cc:2882
0x560e2f252a00 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:5370
0x560e2f21d147 remove_scratches
        /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ira.cc:5414
0x560e2f21d147 ira
        /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ira.cc:5771
0x560e2f21d147 execute
        /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ira.cc:6131
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
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
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
--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
e36bfd9d8fde238e78a3ea7aacac14d2953f25ce' --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-offload-defaulted
--enable-offload-targets=nvptx-none --enable-libgomp --disable-libssp
--enable-libada --enable-cet --disable-systemtap --disable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --with-zstd --without-isl
--enable-default-pie --enable-host-pie --enable-host-bind-now
--enable-default-ssp --disable-fixincludes
--with-gxx-libcxx-include-dir=/usr/include/c++/v1
--with-build-config='bootstrap-lto bootstrap-cet'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.1 20250317 (experimental)
d9a8ec7fe0cbc04e28e650f079952bf529ae612e (Gentoo Hardened 15.0.9999 p, commit
e36bfd9d8fde238e78a3ea7aacac14d2953f25ce)
```

Reply via email to