[gcc r17-3463] x86: Compile some BF16 tests with -mno-avx512bf16 -mno-avxneconvert
"H.J. Lu via Gcc-cvs" <[email protected]>
| Newsgroups | gmane.comp.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://gcc.gnu.org/g:83f3afe15d628481cf90e1c889f8a0c956152256 commit r17-3463-g83f3afe15d628481cf90e1c889f8a0c956152256 Author: H.J. Lu <[email protected]> Date: Thu Aug 20 10:42:08 2026 +0800 x86: Compile some BF16 tests with -mno-avx512bf16 -mno-avxneconvert Compile some BF16 tests with -mno-avx512bf16 -mno-avxneconvert to avoid FAIL: gcc.target/i386/sse2-bfloat16-scalar-typecheck.c (test for excess errors) FAIL: gcc.target/i386/vect-bfloat16-typecheck_1.c (test for excess errors) FAIL: gcc.target/i386/vect-bfloat16-typecheck_2.c (test for excess errors) with errors like sse2-bfloat16-scalar-typecheck.c:16:1: warning: ‘__bfloat16’ is redefined from typedef ‘short’ to real ‘__bf16’ since GCC 13.1, be careful of implicit conversion between ‘__bf16’ and ‘short’; an explicit bitcast may be needed here when AVXNECONVERT or AVX512BF16 are enabled by default. PR testsuite/126923 * gcc.target/i386/sse2-bfloat16-scalar-typecheck.c (dg-options): Add -mno-avx512bf16 -mno-avxneconvert. * gcc.target/i386/vect-bfloat16-typecheck_1.c (dg-options): Likewise. * gcc.target/i386/vect-bfloat16-typecheck_2.c (dg-options): Likewise. Signed-off-by: H.J. Lu <[email protected]> Signed-off-by: H.J. Lu <[email protected]> Diff: --- gcc/testsuite/gcc.target/i386/sse2-bfloat16-scalar-typecheck.c | 2 +- gcc/testsuite/gcc.target/i386/vect-bfloat16-typecheck_1.c | 2 +- gcc/testsuite/gcc.target/i386/vect-bfloat16-typecheck_2.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.target/i386/sse2-bfloat16-scalar-typecheck.c b/gcc/testsuite/gcc.target/i386/sse2-bfloat16-scalar-typecheck.c index 599b02632fdf..a8f371788be9 100644 --- a/gcc/testsuite/gcc.target/i386/sse2-bfloat16-scalar-typecheck.c +++ b/gcc/testsuite/gcc.target/i386/sse2-bfloat16-scalar-typecheck.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-msse2 -O2" } */ +/* { dg-options "-msse2 -mno-avx512bf16 -mno-avxneconvert -O2" } */ __bf16 glob_bfloat; diff --git a/gcc/testsuite/gcc.target/i386/vect-bfloat16-typecheck_1.c b/gcc/testsuite/gcc.target/i386/vect-bfloat16-typecheck_1.c index fdcead3ff42b..afc6ee676135 100644 --- a/gcc/testsuite/gcc.target/i386/vect-bfloat16-typecheck_1.c +++ b/gcc/testsuite/gcc.target/i386/vect-bfloat16-typecheck_1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mavx512fp16 -O2" } */ +/* { dg-options "-mavx512fp16 -mno-avx512bf16 -mno-avxneconvert -O2" } */ #include <immintrin.h> diff --git a/gcc/testsuite/gcc.target/i386/vect-bfloat16-typecheck_2.c b/gcc/testsuite/gcc.target/i386/vect-bfloat16-typecheck_2.c index 17ca3aad6522..362f66ba4804 100644 --- a/gcc/testsuite/gcc.target/i386/vect-bfloat16-typecheck_2.c +++ b/gcc/testsuite/gcc.target/i386/vect-bfloat16-typecheck_2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mavx512fp16 -O2" } */ +/* { dg-options "-mavx512fp16 -mno-avx512bf16 -mno-avxneconvert -O2" } */ #include <immintrin.h>