79cd021451
Fix elf/tst-audit10 and elf/tst-audit4 failures
40 lines
1005 B
Diff
40 lines
1005 B
Diff
commit f327f5b47be57bc05a4077344b381016c1bb2c11
|
|
Author: Florian Weimer <fweimer@redhat.com>
|
|
Date: Fri Mar 25 11:11:42 2016 +0100
|
|
|
|
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.
|
|
|
|
Index: b/sysdeps/x86_64/tst-audit10.c
|
|
===================================================================
|
|
--- a/sysdeps/x86_64/tst-audit10.c
|
|
+++ b/sysdeps/x86_64/tst-audit10.c
|
|
@@ -16,13 +16,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
|
|
@@ -37,6 +37,9 @@ avx512_enabled (void)
|
|
|
|
/* Verify that ZMM, YMM and XMM states are enabled. */
|
|
return (eax & 0xe6) == 0xe6;
|
|
+#else
|
|
+ return 0;
|
|
+#endif
|
|
}
|
|
|
|
static int
|