Skip to content

Commit

Permalink
Fix tst-audit10 build when -mavx512f is not supported.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland McGrath committed Mar 8, 2016
1 parent 0b8dedd commit 3bd80c0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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>

* include/sys/auxv.h: New file.
Expand Down
6 changes: 3 additions & 3 deletions sysdeps/x86_64/tst-audit10-aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
#include <stdlib.h>
#include <string.h>

extern __m512i audit_test (__m512i, __m512i, __m512i, __m512i,
__m512i, __m512i, __m512i, __m512i);

int
tst_audit10_aux (void)
{
#ifdef __AVX512F__
extern __m512i audit_test (__m512i, __m512i, __m512i, __m512i,
__m512i, __m512i, __m512i, __m512i);

__m512i zmm = _mm512_setzero_si512 ();
__m512i ret = audit_test (zmm, zmm, zmm, zmm, zmm, zmm, zmm, zmm);

Expand Down
1 change: 1 addition & 0 deletions sysdeps/x86_64/tst-audit10.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */

#include <cpuid.h>
#include <cpu-features.h>

int tst_audit10_aux (void);

Expand Down

0 comments on commit 3bd80c0

Please sign in to comment.