diff options
author | Florian Weimer <fweimer@redhat.com> | 2016-03-25 11:11:42 +0100 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-04-02 09:48:51 -0700 |
commit | 75f2d47e459a6bf5656a938e5c63f8b581eb3ee6 (patch) | |
tree | 7d27ebeb5c6c1767e97ab19efe2fba1d2a0bda7e | |
parent | 96c7375cb8b6f1875d9865f2ae92ecacf5f5e6fa (diff) | |
download | glibc-75f2d47e459a6bf5656a938e5c63f8b581eb3ee6.tar.gz glibc-75f2d47e459a6bf5656a938e5c63f8b581eb3ee6.tar.xz glibc-75f2d47e459a6bf5656a938e5c63f8b581eb3ee6.zip |
tst-audit10: Fix compilation on compilers without bit_AVX512F [BZ #19860]
[BZ# 19860] * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return zero if the compiler does not provide the AVX512F bit. (cherry picked from commit f327f5b47be57bc05a4077344b381016c1bb2c11)
-rw-r--r-- | sysdeps/x86_64/tst-audit10.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/x86_64/tst-audit10.c b/sysdeps/x86_64/tst-audit10.c index a487b408bb..0df2275f59 100644 --- a/sysdeps/x86_64/tst-audit10.c +++ b/sysdeps/x86_64/tst-audit10.c @@ -17,13 +17,13 @@ <http://www.gnu.org/licenses/>. */ #include <cpuid.h> -#include <cpu-features.h> int tst_audit10_aux (void); static int avx512_enabled (void) { +#ifdef bit_AVX512F unsigned int eax, ebx, ecx, edx; if (__get_cpuid (1, &eax, &ebx, &ecx, &edx) == 0 @@ -38,6 +38,9 @@ avx512_enabled (void) /* Verify that ZMM, YMM and XMM states are enabled. */ return (eax & 0xe6) == 0xe6; +#else + return 0; +#endif } static int |