aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorAndrew Senkevich <andrew.senkevich@intel.com>2015-06-11 13:50:07 +0300
committerAndrew Senkevich <andrew.senkevich@intel.com>2015-06-11 13:50:07 +0300
commit0724d898bb1c15872b1b59c01a9e9d9d74bb4f56 (patch)
tree52543c1f75ef31f3955ad52f6cd83c24731e129c /sysdeps
parent1477b3830740b272e36187e85a7207a09833012b (diff)
downloadglibc-0724d898bb1c15872b1b59c01a9e9d9d74bb4f56.tar
glibc-0724d898bb1c15872b1b59c01a9e9d9d74bb4f56.tar.gz
glibc-0724d898bb1c15872b1b59c01a9e9d9d74bb4f56.tar.bz2
glibc-0724d898bb1c15872b1b59c01a9e9d9d74bb4f56.zip
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.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/x86_64/configure1
-rw-r--r--sysdeps/x86_64/configure.ac1
2 files changed, 2 insertions, 0 deletions
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