mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
Fix tst-audit10 build when -mavx512f is not supported.
This commit is contained in:
parent
0b8dedd38f
commit
3bd80c0de2
@ -1,3 +1,9 @@
|
|||||||
|
2016-03-08 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
|
||||||
|
* sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
|
||||||
|
(tst_audit10_aux) [__AVX512F__]: ... here.
|
||||||
|
|
||||||
2016-03-08 Aurelien Jarno <aurelien@aurel32.net>
|
2016-03-08 Aurelien Jarno <aurelien@aurel32.net>
|
||||||
|
|
||||||
* include/sys/auxv.h: New file.
|
* include/sys/auxv.h: New file.
|
||||||
|
@ -20,13 +20,13 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
extern __m512i audit_test (__m512i, __m512i, __m512i, __m512i,
|
|
||||||
__m512i, __m512i, __m512i, __m512i);
|
|
||||||
|
|
||||||
int
|
int
|
||||||
tst_audit10_aux (void)
|
tst_audit10_aux (void)
|
||||||
{
|
{
|
||||||
#ifdef __AVX512F__
|
#ifdef __AVX512F__
|
||||||
|
extern __m512i audit_test (__m512i, __m512i, __m512i, __m512i,
|
||||||
|
__m512i, __m512i, __m512i, __m512i);
|
||||||
|
|
||||||
__m512i zmm = _mm512_setzero_si512 ();
|
__m512i zmm = _mm512_setzero_si512 ();
|
||||||
__m512i ret = audit_test (zmm, zmm, zmm, zmm, zmm, zmm, zmm, zmm);
|
__m512i ret = audit_test (zmm, zmm, zmm, zmm, zmm, zmm, zmm, zmm);
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<http://www.gnu.org/licenses/>. */
|
<http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <cpuid.h>
|
#include <cpuid.h>
|
||||||
|
#include <cpu-features.h>
|
||||||
|
|
||||||
int tst_audit10_aux (void);
|
int tst_audit10_aux (void);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user