about summary refs log tree commit diff
path: root/sysdeps/x86_64/configure
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-10-02 16:48:34 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-10-11 06:01:01 -0700
commit69bf858f681588d57c1b5d9d62a7951cda1549f6 (patch)
treecd01f81bc73ecc540f144472b5fe42c1dbf24e12 /sysdeps/x86_64/configure
parent54a417345edca0015e70e8b360b7f83ade5a7507 (diff)
downloadglibc-69bf858f681588d57c1b5d9d62a7951cda1549f6.tar.gz
glibc-69bf858f681588d57c1b5d9d62a7951cda1549f6.tar.xz
glibc-69bf858f681588d57c1b5d9d62a7951cda1549f6.zip
Compile AVX libm functions with -mavx -mprefer-avx128 hjl/avx128
Diffstat (limited to 'sysdeps/x86_64/configure')
-rw-r--r--sysdeps/x86_64/configure20
1 files changed, 20 insertions, 0 deletions
diff --git a/sysdeps/x86_64/configure b/sysdeps/x86_64/configure
index 0fa0e1ecfa..4b48c65bcc 100644
--- a/sysdeps/x86_64/configure
+++ b/sysdeps/x86_64/configure
@@ -91,6 +91,26 @@ if test $libc_cv_cc_avx = yes; then
 
 fi
 
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking -mavx -mprefer-avx128 support" >&5
+$as_echo_n "checking -mavx -mprefer-avx128 support... " >&6; }
+if ${libc_cv_cc_avx128+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if { ac_try='${CC-cc} -mavx -mprefer-avx128 -xc /dev/null -S -o /dev/null'
+  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; }; then :
+  libc_cv_cc_avx128=yes
+else
+  libc_cv_cc_avx128=no
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_avx128" >&5
+$as_echo "$libc_cv_cc_avx128" >&6; }
+
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX encoding of SSE instructions" >&5
 $as_echo_n "checking for AVX encoding of SSE instructions... " >&6; }
 if ${libc_cv_cc_sse2avx+:} false; then :