mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
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.
This commit is contained in:
parent
c898991d8b
commit
f327f5b47b
@ -1,3 +1,9 @@
|
||||
2016-03-25 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
[BZ# 19860]
|
||||
* sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
|
||||
zero if the compiler does not provide the AVX512F bit.
|
||||
|
||||
2016-03-24 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
[BZ #19848]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user