[PATCH] ext-floating14.C: Compile with -mno-avx512bf16 -mno-avxneconvert

"H.J. Lu" <[email protected]>
Newsgroups gmane.comp.gcc.patches
Message-ID <CAMe9rOqb5fbwaoNgM6ujzsP5ZU=N+C7PFKjOj0FYszmBns4D-A@mail.gmail.com>
Compile ext-floating14.C with -mno-avx512bf16 -mno-avxneconvert for x86
to avoid

FAIL: g++.dg/cpp23/ext-floating14.C  -std=gnu++23 (test for excess errors)
FAIL: g++.dg/cpp23/ext-floating14.C  -std=gnu++26 (test for excess errors)
FAIL: g++.dg/cpp23/ext-floating14.C  -std=gnu++29 (test for excess errors)

with warnings like

ext-floating14.C:112:111: 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
* g++.dg/cpp23/ext-floating14.C (dg-additional-options): Add
-mno-avx512bf16 -mno-avxneconvert for x86.

-- 
H.J.
0001-ext-floating14.C-Compile-with-mno-avx512bf16-mno-avx.patch (text/x-patch, 1.7 KB)
From 2da469bfabb206fe89fb8a0e3992a16f9f65858d Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <[email protected]>
Date: Thu, 20 Aug 2026 15:24:16 +0800
Subject: [PATCH] ext-floating14.C: Compile with -mno-avx512bf16
 -mno-avxneconvert
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Compile ext-floating14.C with -mno-avx512bf16 -mno-avxneconvert for x86
to avoid

FAIL: g++.dg/cpp23/ext-floating14.C  -std=gnu++23 (test for excess errors)
FAIL: g++.dg/cpp23/ext-floating14.C  -std=gnu++26 (test for excess errors)
FAIL: g++.dg/cpp23/ext-floating14.C  -std=gnu++29 (test for excess errors)

with warnings like

ext-floating14.C:112:111: 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
	* g++.dg/cpp23/ext-floating14.C (dg-additional-options): Add
	-mno-avx512bf16 -mno-avxneconvert for x86.

Signed-off-by: H.J. Lu <[email protected]>
---
 gcc/testsuite/g++.dg/cpp23/ext-floating14.C | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/g++.dg/cpp23/ext-floating14.C b/gcc/testsuite/g++.dg/cpp23/ext-floating14.C
index 668b765b93d..8fe3c5158aa 100644
--- a/gcc/testsuite/g++.dg/cpp23/ext-floating14.C
+++ b/gcc/testsuite/g++.dg/cpp23/ext-floating14.C
@@ -2,6 +2,7 @@
 // PR target/107703
 // { dg-do run { target c++23 } }
 // { dg-options "-fexcess-precision=standard" }
+// { dg-additional-options "-mno-avx512bf16 -mno-avxneconvert" { target { i?86-*-* x86_64-*-* } } }
 
 #include "ext-floating.h"
 
-- 
2.55.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.