From d603d94994a1d326ebc9e93c8be892acc834a114 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 8 Mar 2016 12:31:13 -0800 Subject: Fix tst-audit10 build when -mavx512f is not supported. (cherry picked from commit 3bd80c0de2f8e7ca8020d37739339636d169957e) --- sysdeps/x86_64/tst-audit10-aux.c | 6 +++--- sysdeps/x86_64/tst-audit10.c | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/x86_64/tst-audit10-aux.c b/sysdeps/x86_64/tst-audit10-aux.c index 4398b8fd6f..992a16c8ad 100644 --- a/sysdeps/x86_64/tst-audit10-aux.c +++ b/sysdeps/x86_64/tst-audit10-aux.c @@ -20,13 +20,13 @@ #include #include -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); diff --git a/sysdeps/x86_64/tst-audit10.c b/sysdeps/x86_64/tst-audit10.c index 92e0cb4b52..a487b408bb 100644 --- a/sysdeps/x86_64/tst-audit10.c +++ b/sysdeps/x86_64/tst-audit10.c @@ -17,6 +17,7 @@ . */ #include +#include int tst_audit10_aux (void); -- cgit v1.2.1