public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/111051] New: [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch
@ 2023-08-17 20:44 slyfox at gcc dot gnu.org
2023-08-17 21:02 ` [Bug target/111051] " pinskia at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: slyfox at gcc dot gnu.org @ 2023-08-17 20:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111051
Bug ID: 111051
Summary: [14 Regression] highway-1.0.6 fails to build as
gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/inc
lude/avxintrin.h:1238:1: error: inlining failed in
call to 'always_inline' '__m256d _mm256_setzero_pd()':
target specific option mismatch
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: slyfox at gcc dot gnu.org
Target Milestone: ---
Observed build failure on today's gcc from r14-3296-gdc48d1d1d44587 against
highway-1.0.6 ( https://github.com/google/highway ).
I have not managed to extract nice example ot of it yet, but maybe it's obvious
to you?
The (somewhat big) reproducer is:
$ git clone https://github.com/google/highway
$ cd highway
$ mkdir b
$ cd b
$ cmake .. -DCMAKE_BUILD_TYPE=Release
$ make
...
LANG=C /nix/store/vmrxs83fhqs6d3gsyg97hh0lbfzhk9jl-gcc-wrapper-14.0.0/bin/g++
-DHWY_STATIC_DEFINE -DTOOLCHAIN_MISS_ASM_HWCAP_H -I/home/slyfox/dev/git/highway
-isystem /home/slyfox/dev/git/highway/b/googletest-src/googletest/include
-isystem /home/slyfox/dev/git/highway/b/googletest-src/googletest -O3 -DNDEBUG
-fPIE -fvisibility=hidden -fvisibility-inlines-hidden
-Wno-builtin-macro-redefined -D__DATE__=\"redacted\"
-D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants
-Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor
-fmath-errno -fno-exceptions -DHWY_IS_TEST=1 -MD -MT
CMakeFiles/math_test.dir/hwy/contrib/math/math_test.cc.o -MF
CMakeFiles/math_test.dir/hwy/contrib/math/math_test.cc.o.d -o
CMakeFiles/math_test.dir/hwy/contrib/math/math_test.cc.o -c
/home/slyfox/dev/git/highway/hwy/contrib/math/math_test.cc
In file included from
/nix/store/9j5pznccwi0vzmj91w8yr2kiwdm37c5p-gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/immintrin.h:71,
from /home/slyfox/dev/git/highway/hwy/ops/x86_256-inl.h:36,
from /home/slyfox/dev/git/highway/hwy/highway.h:407,
from
/home/slyfox/dev/git/highway/hwy/contrib/math/math_test.cc:25,
from /home/slyfox/dev/git/highway/hwy/foreach_target.h:94,
from
/home/slyfox/dev/git/highway/hwy/contrib/math/math_test.cc:24:
/nix/store/9j5pznccwi0vzmj91w8yr2kiwdm37c5p-gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avx512vldqintrin.h:
In function '__m256 _mm256_mask_xor_ps(__m256, __mmask8, __m256, __m256)':
/nix/store/9j5pznccwi0vzmj91w8yr2kiwdm37c5p-gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avx512vldqintrin.h:1154:1:
note: the ABI for passing parameters with 32-byte alignment has changed in GCC
4.6
1154 | _mm256_mask_xor_ps (__m256 __W, __mmask8 __U, __m256 __A, __m256 __B)
| ^~~~~~~~~~~~~~~~~~
/home/slyfox/dev/git/highway/hwy/contrib/math/math_test.cc:439:1: warning: AVX
vector return without AVX enabled changes the ABI [-Wpsabi]
439 | } // namespace hwy
| ^
In file included from
/nix/store/9j5pznccwi0vzmj91w8yr2kiwdm37c5p-gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/immintrin.h:43:
/nix/store/9j5pznccwi0vzmj91w8yr2kiwdm37c5p-gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:
In function '__m256d _mm256_cvtepi64_pd(__m256i)':
/nix/store/9j5pznccwi0vzmj91w8yr2kiwdm37c5p-gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1:
error: inlining failed in call to 'always_inline' '__m256d
_mm256_setzero_pd()': target specific option mismatch
1238 | _mm256_setzero_pd (void)
| ^~~~~~~~~~~~~~~~~
/nix/store/9j5pznccwi0vzmj91w8yr2kiwdm37c5p-gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avx512vldqintrin.h:912:10:
note: called from here
912 | return (__m256d) __builtin_ia32_cvtqq2pd256_mask ((__v4di) __A,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
913 | (__v4df)
| ~~~~~~~~
914 | _mm256_setzero_pd
(),
|
~~~~~~~~~~~~~~~~~~~~~
915 | (__mmask8) -1);
| ~~~~~~~~~~~~~~
I have a suspiction it's related to AVX10 changes, like
r14-3268-g0b20e0f17b47a8 which remove `#pragma GCC
target("avx512vl,avx512dq")`. Probably not that one specifically though.
$ gcc -v
Using built-in specs.
COLLECT_GCC=/<<NIX>>/gcc-14.0.0/bin/gcc
COLLECT_LTO_WRAPPER=/<<NIX>>/gcc-14.0.0/libexec/gcc/x86_64-unknown-linux-gnu/14.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../source/configure --prefix=/<<NIX>>/gcc-14.0.0
--with-gmp-include=/<<NIX>>/gmp-6.3.0-dev/include
--with-gmp-lib=/<<NIX>>/gmp-6.3.0/lib
--with-mpfr-include=/<<NIX>>/mpfr-4.2.0-12-dev/include
--with-mpfr-lib=/<<NIX>>/mpfr-4.2.0-12/lib --with-mpc=/<<NIX>>/libmpc-1.3.1
--with-native-system-header-dir=/<<NIX>>/glibc-2.38-dev/include
--with-build-sysroot=/ --program-prefix= --enable-lto --disable-libstdcxx-pch
--without-included-gettext --with-system-zlib --enable-checking=release
--enable-static --enable-languages=c,c++ --disable-multilib --enable-plugin
--disable-libcc1 --with-isl=/<<NIX>>/isl-0.20 --disable-bootstrap
--build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu
--target=x86_64-unknown-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.0.0 99999999 (experimental) (GCC)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/111051] [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch
2023-08-17 20:44 [Bug target/111051] New: [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch slyfox at gcc dot gnu.org
@ 2023-08-17 21:02 ` pinskia at gcc dot gnu.org
2023-08-17 21:26 ` slyfox at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-08-17 21:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111051
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |14.0
Severity|normal |blocker
Keywords| |rejects-valid
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/111051] [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch
2023-08-17 20:44 [Bug target/111051] New: [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch slyfox at gcc dot gnu.org
2023-08-17 21:02 ` [Bug target/111051] " pinskia at gcc dot gnu.org
@ 2023-08-17 21:26 ` slyfox at gcc dot gnu.org
2023-08-18 2:54 ` haochen.jiang at intel dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: slyfox at gcc dot gnu.org @ 2023-08-17 21:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111051
--- Comment #1 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
Found this difference, looks reasonable?
// $ cat a.cc
#include <immintrin.h>
#pragma GCC target("avx512vl,avx512dq")
void bug(__m256i i) {
volatile auto v1 = _mm256_cvtepi64_pd(i);
}
Difference:
$ g++-13 -c a.cc
# ok
$ g++-14 -c a.cc
In file included from
/<<NIX>>/gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/immintrin.h:71,
from a.cc:1:
/<<NIX>>/gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avx512vldqintrin.h:
In function '__m256d _mm256_cvtepi64_pd(__m256i)':
/<<NIX>>/gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avx512vldqintrin.h:910:1:
note: the ABI for passing parameters with 32-byte alignment has changed in GCC
4.6
910 | _mm256_cvtepi64_pd (__m256i __A)
| ^~~~~~~~~~~~~~~~~~
a.cc:7:1: warning: AVX vector return without AVX enabled changes the ABI
[-Wpsabi]
7 | }
| ^
In file included from
/<<NIX>>/gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/immintrin.h:43:
/<<NIX>>/gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1:
error: inlining failed in call to 'always_inline' '__m256d
_mm256_setzero_pd()': target specific option mismatch
1238 | _mm256_setzero_pd (void)
| ^~~~~~~~~~~~~~~~~
/<<NIX>>/gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avx512vldqintrin.h:912:10:
note: called from here
912 | return (__m256d) __builtin_ia32_cvtqq2pd256_mask ((__v4di) __A,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
913 | (__v4df)
| ~~~~~~~~
914 | _mm256_setzero_pd
(),
|
~~~~~~~~~~~~~~~~~~~~~
915 | (__mmask8) -1);
| ~~~~~~~~~~~~~~
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/111051] [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch
2023-08-17 20:44 [Bug target/111051] New: [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch slyfox at gcc dot gnu.org
2023-08-17 21:02 ` [Bug target/111051] " pinskia at gcc dot gnu.org
2023-08-17 21:26 ` slyfox at gcc dot gnu.org
@ 2023-08-18 2:54 ` haochen.jiang at intel dot com
2023-08-18 6:02 ` haochen.jiang at intel dot com
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: haochen.jiang at intel dot com @ 2023-08-18 2:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111051
--- Comment #2 from Haochen Jiang <haochen.jiang at intel dot com> ---
It is caused by when including immintrin.h, since the pragma is removed, there
will be no AVX support, which makes _mm256_setzero_pd invisible.
Adding a AVX2 pragma instead of removing it should solve the problem.
I am working a patch on that.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/111051] [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch
2023-08-17 20:44 [Bug target/111051] New: [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch slyfox at gcc dot gnu.org
` (2 preceding siblings ...)
2023-08-18 2:54 ` haochen.jiang at intel dot com
@ 2023-08-18 6:02 ` haochen.jiang at intel dot com
2023-08-18 7:46 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: haochen.jiang at intel dot com @ 2023-08-18 6:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111051
--- Comment #3 from Haochen Jiang <haochen.jiang at intel dot com> ---
See patch:
https://gcc.gnu.org/pipermail/gcc-patches/2023-August/627829.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/111051] [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch
2023-08-17 20:44 [Bug target/111051] New: [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch slyfox at gcc dot gnu.org
` (3 preceding siblings ...)
2023-08-18 6:02 ` haochen.jiang at intel dot com
@ 2023-08-18 7:46 ` cvs-commit at gcc dot gnu.org
2023-08-18 7:55 ` slyfox at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-08-18 7:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111051
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Haochen Jiang <jianghc@gcc.gnu.org>:
https://gcc.gnu.org/g:68f7cb6cf9e8b9f2254855507f3b479552adda5f
commit r14-3318-g68f7cb6cf9e8b9f2254855507f3b479552adda5f
Author: Haochen Jiang <haochen.jiang@intel.com>
Date: Fri Aug 18 11:05:16 2023 +0800
i386: Add AVX2 pragma wrapper for AVX512DQVL intrins
PR target/111051
gcc/ChangeLog:
* config/i386/avx512vldqintrin.h: Push AVX2 when AVX2 is
disabled.
gcc/testsuite/ChangeLog:
PR target/111051
* gcc.target/i386/pr111051-1.c: New test.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/111051] [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch
2023-08-17 20:44 [Bug target/111051] New: [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch slyfox at gcc dot gnu.org
` (4 preceding siblings ...)
2023-08-18 7:46 ` cvs-commit at gcc dot gnu.org
@ 2023-08-18 7:55 ` slyfox at gcc dot gnu.org
2023-09-08 9:08 ` malat at debian dot org
2023-09-08 10:52 ` slyfox at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: slyfox at gcc dot gnu.org @ 2023-08-18 7:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111051
--- Comment #5 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
The change fixed highway-1.0.6 build for me. Thank you!
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/111051] [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch
2023-08-17 20:44 [Bug target/111051] New: [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch slyfox at gcc dot gnu.org
` (5 preceding siblings ...)
2023-08-18 7:55 ` slyfox at gcc dot gnu.org
@ 2023-09-08 9:08 ` malat at debian dot org
2023-09-08 10:52 ` slyfox at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: malat at debian dot org @ 2023-09-08 9:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111051
Mathieu Malaterre <malat at debian dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |malat at debian dot org
--- Comment #6 from Mathieu Malaterre <malat at debian dot org> ---
looks like this one should be marked fixed.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/111051] [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch
2023-08-17 20:44 [Bug target/111051] New: [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch slyfox at gcc dot gnu.org
` (6 preceding siblings ...)
2023-09-08 9:08 ` malat at debian dot org
@ 2023-09-08 10:52 ` slyfox at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: slyfox at gcc dot gnu.org @ 2023-09-08 10:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111051
Sergei Trofimovich <slyfox at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
Sounds reasonable. Closing as FIXED.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-09-08 10:52 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-17 20:44 [Bug target/111051] New: [14 Regression] highway-1.0.6 fails to build as gcc-14.0.0/lib/gcc/x86_64-unknown-linux-gnu/14.0.0/include/avxintrin.h:1238:1: error: inlining failed in call to 'always_inline' '__m256d _mm256_setzero_pd()': target specific option mismatch slyfox at gcc dot gnu.org
2023-08-17 21:02 ` [Bug target/111051] " pinskia at gcc dot gnu.org
2023-08-17 21:26 ` slyfox at gcc dot gnu.org
2023-08-18 2:54 ` haochen.jiang at intel dot com
2023-08-18 6:02 ` haochen.jiang at intel dot com
2023-08-18 7:46 ` cvs-commit at gcc dot gnu.org
2023-08-18 7:55 ` slyfox at gcc dot gnu.org
2023-09-08 9:08 ` malat at debian dot org
2023-09-08 10:52 ` slyfox 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).