public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/112435] New: [14 regression]
@ 2023-11-08  3:23 sjames at gcc dot gnu.org
  2023-11-08  3:31 ` [Bug target/112435] [14 regression] GCC generates assembly which gas rejects with AVX512 when building ncnn? (Error: unsupported instruction `vblendps') pinskia at gcc dot gnu.org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-11-08  3:23 UTC (permalink / raw)
  To: gcc-bugs

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)
```

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-11-14  7:23 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-08  3:23 [Bug target/112435] New: [14 regression] sjames at gcc dot gnu.org
2023-11-08  3:31 ` [Bug target/112435] [14 regression] GCC generates assembly which gas rejects with AVX512 when building ncnn? (Error: unsupported instruction `vblendps') pinskia at gcc dot gnu.org
2023-11-08  3:32 ` sjames at gcc dot gnu.org
2023-11-08  3:34 ` pinskia at gcc dot gnu.org
2023-11-08  3:35 ` pinskia at gcc dot gnu.org
2023-11-08  3:36 ` pinskia at gcc dot gnu.org
2023-11-08  3:38 ` pinskia at gcc dot gnu.org
2023-11-08  3:54 ` pinskia at gcc dot gnu.org
2023-11-08  3:56 ` sjames at gcc dot gnu.org
2023-11-08  3:56 ` pinskia at gcc dot gnu.org
2023-11-08  3:59 ` pinskia at gcc dot gnu.org
2023-11-08  4:45 ` [Bug target/112435] [14 regression] GCC generates assembly which gas rejects with AVX when building ncnn (Error: unsupported instruction `vblendps') since r14-96-gc2dac2e5fbbcdd sjames at gcc dot gnu.org
2023-11-08  6:08 ` haochen.jiang at intel dot com
2023-11-08  8:07 ` rguenth at gcc dot gnu.org
2023-11-10 15:11 ` jakub at gcc dot gnu.org
2023-11-10 19:17 ` pinskia at gcc dot gnu.org
2023-11-14  7:15 ` cvs-commit at gcc dot gnu.org
2023-11-14  7:23 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).