https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112435
Bug ID: 112435
Summary: [14 regression]
Product: gcc
Version: 14.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 56530
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56530&action=edit
gridsample_x86_avx512.cpp.ii
I'm not sure what's going on here but it works with GCC 13 and doesn't with 14,
so I figured I'd file it just in case.
The file is huge and upstream also heavily use SIMD, so it's possible there's
an issue on that side.
Reported downstream originally at https://bugs.gentoo.org/916970.
--
I can reproduce it with 'g++-14 -fPIC -fvisibility=hidden
-fvisibility-inlines-hidden -msse2 -msse -fopenmp -mavx512f -mavx512cd
-mavx512bw -mavx512dq -mavx512vl -mfma -mf16c -c gridsample_x86_avx512.cpp.ii
-O3 -c gridsample_x86_avx512.cpp.ii -march=znver2':
```
$ g++-14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -msse2 -msse
-fopenmp -mavx512f -mavx512cd -mavx512bw -mavx512dq -mavx512vl -mfma -mf16c -c
gridsample_x86_avx512.cpp.ii -O3 -c gridsample_x86_avx512.cpp.ii -march=znver2
/tmp/ccs8OnnL.s: Assembler messages:
/tmp/ccs8OnnL.s:1906: Error: unsupported instruction `vblendps'
/tmp/ccs8OnnL.s:1907: Error: unsupported instruction `vblendps'
/tmp/ccs8OnnL.s:2358: Error: unsupported instruction `vblendps'
/tmp/ccs8OnnL.s:3250: Error: unsupported instruction `vblendps'
/tmp/ccs8OnnL.s:3251: Error: unsupported instruction `vblendps'
/tmp/ccs8OnnL.s:3661: Error: unsupported instruction `vblendps'
/tmp/ccs8OnnL.s:3663: Error: unsupported instruction `vblendps'
```
```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/14/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-14.0.0_pre20231105/work/gcc-14-20231105/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/14
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/14/python
--enable-languages=c,c++,fortran,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
14.0.0_pre20231105 p8' --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 --disable-libada --enable-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 --with-build-config='bootstrap-O3 bootstrap-lto
bootstrap-cet'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.0 20231105 (experimental) (Gentoo Hardened 14.0.0_pre20231105
p8)
```