From 0724d898bb1c15872b1b59c01a9e9d9d74bb4f56 Mon Sep 17 00:00:00 2001 From: Andrew Senkevich Date: Thu, 11 Jun 2015 13:50:07 +0300 Subject: 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. --- sysdeps/x86_64/configure | 1 + sysdeps/x86_64/configure.ac | 1 + 2 files changed, 2 insertions(+) (limited to 'sysdeps') diff --git a/sysdeps/x86_64/configure b/sysdeps/x86_64/configure index 1493523e1c..552f535ac6 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 1c2b35fe92..e7208c9b30 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 -- cgit 1.4.1