about summary refs log tree commit diff
path: root/sysdeps/i386/configure
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-06-14 10:27:33 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-06-14 10:27:33 -0700
commit418f6a195e0b546045b466da27f1533076b039ce (patch)
tree788dc5d67332a92b9731f490dd2c82be50998196 /sysdeps/i386/configure
parenta924047473718dd3f14894aadfd1a24e704b0bfe (diff)
parentb3073e90d783d179d20ba2a671febc4c08285a8a (diff)
downloadglibc-418f6a195e0b546045b466da27f1533076b039ce.tar.gz
glibc-418f6a195e0b546045b466da27f1533076b039ce.tar.xz
glibc-418f6a195e0b546045b466da27f1533076b039ce.zip
Merge remote-tracking branch 'origin/release/2.15/master' into hjl/x32/release/2.15 hjl/x32/release/2.15
Diffstat (limited to 'sysdeps/i386/configure')
-rw-r--r--sysdeps/i386/configure23
1 files changed, 23 insertions, 0 deletions
diff --git a/sysdeps/i386/configure b/sysdeps/i386/configure
index ae494e2712..bc7900ee2e 100644
--- a/sysdeps/i386/configure
+++ b/sysdeps/i386/configure
@@ -756,6 +756,29 @@ if test $libc_cv_cc_avx = yes; then
 
 fi
 
+{ $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 :
+  $as_echo_n "(cached) " >&6
+else
+  if { ac_try='${CC-cc} -msse2avx -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_sse2avx=yes
+else
+  libc_cv_cc_sse2avx=no
+fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_sse2avx" >&5
+$as_echo "$libc_cv_cc_sse2avx" >&6; }
+if test $libc_cv_cc_sse2avx = yes; then
+  $as_echo "#define HAVE_SSE2AVX_SUPPORT 1" >>confdefs.h
+
+fi
+
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FMA4 support" >&5
 $as_echo_n "checking for FMA4 support... " >&6; }
 if ${libc_cv_cc_fma4+:} false; then :