]> git.ipfire.org Git - thirdparty/gcc.git/commit
i386: Do not check vector size conflict when AVX512 is not explicitly set [PR 118815]
authorHaochen Jiang <haochen.jiang@intel.com>
Mon, 10 Feb 2025 08:53:27 +0000 (16:53 +0800)
committerHaochen Jiang <haochen.jiang@intel.com>
Mon, 17 Feb 2025 03:01:36 +0000 (11:01 +0800)
commite15216046dba02ffa1c3ae367cdc86d5fd3df0be
treebd78a27c8e4ad592ee64b23a8ad7e2f9b577edcf
parentae14d7d04da8c6cb542269722638071f999f94d8
i386: Do not check vector size conflict when AVX512 is not explicitly set [PR 118815]

When AVX512 is not explicitly set, we should not take EVEX512 bit into
consideration when checking vector size. It will solve the intrin header
file reporting warnings when compiling with -Wsystem-headers.

However, there is side effect on the usage for '-march=xxx -mavx10.1-256',
where xxx is with AVX512. It will not report warning on vector size for now.
Since it is a rare usage, we will take it.

gcc/ChangeLog:

PR target/118815
* config/i386/i386-options.cc (ix86_option_override_internal):
Do not check vector size conflict when AVX512 is not explicitly
set.

gcc/testsuite/ChangeLog:

PR target/118815
* gcc.target/i386/pr118815.c: New test.
gcc/config/i386/i386-options.cc
gcc/testsuite/gcc.target/i386/pr118815.c [new file with mode: 0644]