[PATCH] x86: Disable AVX512BW for pr70325.c
"H.J. Lu" <[email protected]>
| Newsgroups | gmane.comp.gcc.patches |
|---|---|
| Message-ID | <CAMe9rOqetN6RmNHt34fTX22Dfz9E=s51Dnk2fW0UVMRdup9tQQ@mail.gmail.com> |
__builtin_ia32_storedquqi256_mask is available when both AVX512VL and
AVX512BW are enabled. Disable AVX512BW for pr70325.c to avoid
FAIL: gcc.target/i386/pr70325.c (test for excess errors)
FAIL: gcc.target/i386/pr70325.c (test for warnings, line 11)
due to the generated error:
.../gcc.target/i386/pr70325.c:11:37: warning: passing argument 1 of
‘__builtin_ia32_storedquqi256_mask’ from incompatible pointer type
[-Wincompatible-pointer-types]
.../gcc.target/i386/pr70325.c:11:37: note: expected ‘char *’ but
argument is of type ‘C *’ {aka ‘__vector(32) char *’}
vs the expected error
.../gcc.target/i386/pr70325.c: In function ‘f’:
.../gcc.target/i386/pr70325.c:11:3: warning: implicit declaration of
function ‘__builtin_ia32_storedquqi256_mask’; did you mean
‘__builtin_ia32_storedqudi256_mask’? [-Wimplicit-function-declaration]
when AVX512BW is enabled by default.
PR testsuite/126923
* gcc.target/i386/pr70325.c (dg-options): Add -mno-avx512bw.
--
H.J.
0001-x86-Disable-AVX512BW-for-pr70325.c.patch
(text/x-patch, 1.9 KB)
From dd8d991fcce4dc113e7562763e50236d7cd1457f Mon Sep 17 00:00:00 2001 From: "H.J. Lu" <[email protected]> Date: Thu, 20 Aug 2026 14:31:46 +0800 Subject: [PATCH] x86: Disable AVX512BW for pr70325.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit __builtin_ia32_storedquqi256_mask is available when both AVX512VL and AVX512BW are enabled. Disable AVX512BW for pr70325.c to avoid FAIL: gcc.target/i386/pr70325.c (test for excess errors) FAIL: gcc.target/i386/pr70325.c (test for warnings, line 11) due to the generated error: .../gcc.target/i386/pr70325.c:11:37: warning: passing argument 1 of ‘__builtin_ia32_storedquqi256_mask’ from incompatible pointer type [-Wincompatible-pointer-types] .../gcc.target/i386/pr70325.c:11:37: note: expected ‘char *’ but argument is of type ‘C *’ {aka ‘__vector(32) char *’} vs the expected error .../gcc.target/i386/pr70325.c: In function ‘f’: .../gcc.target/i386/pr70325.c:11:3: warning: implicit declaration of function ‘__builtin_ia32_storedquqi256_mask’; did you mean ‘__builtin_ia32_storedqudi256_mask’? [-Wimplicit-function-declaration] when AVX512BW is enabled by default. PR testsuite/126923 * gcc.target/i386/pr70325.c (dg-options): Add -mno-avx512bw. Signed-off-by: H.J. Lu <[email protected]> --- gcc/testsuite/gcc.target/i386/pr70325.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/i386/pr70325.c b/gcc/testsuite/gcc.target/i386/pr70325.c index 8b307399333..2f6a0e7bbb0 100644 --- a/gcc/testsuite/gcc.target/i386/pr70325.c +++ b/gcc/testsuite/gcc.target/i386/pr70325.c @@ -1,6 +1,6 @@ /* PR target/70325 */ /* { dg-do compile } */ -/* { dg-options "-fpermissive -mavx512vl -O2" } */ +/* { dg-options "-fpermissive -mavx512vl -mno-avx512bw -O2" } */ typedef char C __attribute((__vector_size__(32))); typedef int I __attribute((__vector_size__(32))); -- 2.55.0