From: Andrew Senkevich Date: Thu, 11 Jun 2015 10:50:07 +0000 (+0300) Subject: More strict check of AVX512 support in assembler. X-Git-Tag: upstream/2.30~5956 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0724d898bb1c15872b1b59c01a9e9d9d74bb4f56;p=external%2Fglibc.git More strict check of AVX512 support in assembler. Binutils 2.24 doesn't support some AVX512 instructions with ZMM registers, so we need add more strict check. * configure.ac: Added more strict check. * configure: Regenerated. --- diff --git a/ChangeLog b/ChangeLog index 3089ce2..72db3d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-06-11 Andrew Senkevich + + * configure.ac: More strict check for AVX512 assembler support. + * configure: Regenerated. + 2015-06-11 Florian Weimer * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in diff --git a/sysdeps/x86_64/configure b/sysdeps/x86_64/configure index 1493523..552f535 100644 --- a/sysdeps/x86_64/configure +++ b/sysdeps/x86_64/configure @@ -102,6 +102,7 @@ if ${libc_cv_asm_avx512+:} false; then : else cat > conftest.s <<\EOF vmovdqu64 %zmm0, (%rsp) + vandpd (%rax), %zmm6, %zmm1 EOF if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 diff --git a/sysdeps/x86_64/configure.ac b/sysdeps/x86_64/configure.ac index 1c2b35f..e7208c9 100644 --- a/sysdeps/x86_64/configure.ac +++ b/sysdeps/x86_64/configure.ac @@ -27,6 +27,7 @@ dnl Check if asm supports AVX512. AC_CACHE_CHECK(for AVX512 support in assembler, libc_cv_asm_avx512, [dnl cat > conftest.s <<\EOF vmovdqu64 %zmm0, (%rsp) + vandpd (%rax), %zmm6, %zmm1 EOF if AC_TRY_COMMAND(${CC-cc} -c $ASFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then libc_cv_asm_avx512=yes