More strict check of AVX512 support in assembler.
authorAndrew Senkevich <andrew.senkevich@intel.com>
Thu, 11 Jun 2015 10:50:07 +0000 (13:50 +0300)
committerAndrew Senkevich <andrew.senkevich@intel.com>
Thu, 11 Jun 2015 10:50:07 +0000 (13:50 +0300)
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.

ChangeLog
sysdeps/x86_64/configure
sysdeps/x86_64/configure.ac

index 3089ce2..72db3d8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
+
+       * configure.ac: More strict check for AVX512 assembler support.
+       * configure: Regenerated.
+
 2015-06-11  Florian Weimer  <fweimer@redhat.com>
 
        * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
index 1493523..552f535 100644 (file)
@@ -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
index 1c2b35f..e7208c9 100644 (file)
@@ -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