[Bug testsuite/101185] [12 Regression] pr96814.c failed after r12-1669 on non-avx512 platform
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 20 04:33:18 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101185
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |testsuite
--- Comment #16 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> > > FAIL: gcc.target/i386/avx512bw-pr70329-1.c execution test
> > > FAIL: gcc.target/i386/pr96814.c execution test
That seems like a testsuite issue.
main and check_osxsave don't turn off AVX512f.
This should fix the issue to the testsuite:
diff --git a/gcc/testsuite/gcc.target/i386/avx512-check.h
b/gcc/testsuite/gcc.target/i386/avx512-check.h
index 0ad9064f637..212dcea7600 100644
--- a/gcc/testsuite/gcc.target/i386/avx512-check.h
+++ b/gcc/testsuite/gcc.target/i386/avx512-check.h
@@ -25,6 +25,8 @@ do_test (void)
}
#endif
+static int
+check_osxsave (void) __attribute__((target("no-avx")));
static int
check_osxsave (void)
{
@@ -34,6 +36,8 @@ check_osxsave (void)
return (ecx & bit_OSXSAVE) != 0;
}
+int
+main () __attribute__((target("no-avx")));
int
main ()
{
More information about the Gcc-bugs
mailing list