diff options
author | Ulrich Drepper <drepper@gmail.com> | 2012-01-28 14:48:46 -0500 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2012-01-28 14:48:46 -0500 |
commit | 56f6f6a2403cfa7267cad722597113be35ecf70d (patch) | |
tree | dd8bc1d7fe292985484bb91ef7ae9f31a8603081 /sysdeps/i386/configure.in | |
parent | 73139a7628c424c82eb9297ccb5505c0bc5b65aa (diff) | |
download | glibc-56f6f6a2403cfa7267cad722597113be35ecf70d.zip glibc-56f6f6a2403cfa7267cad722597113be35ecf70d.tar.gz glibc-56f6f6a2403cfa7267cad722597113be35ecf70d.tar.bz2 |
Use -msse2avx option for x86-64 libm functions
Diffstat (limited to 'sysdeps/i386/configure.in')
-rw-r--r-- | sysdeps/i386/configure.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sysdeps/i386/configure.in b/sysdeps/i386/configure.in index 5a9840e..59a4cd6 100644 --- a/sysdeps/i386/configure.in +++ b/sysdeps/i386/configure.in @@ -67,6 +67,17 @@ if test $libc_cv_cc_avx = yes; then AC_DEFINE(HAVE_AVX_SUPPORT) fi +dnl Check if -msse2avx works. +AC_CACHE_CHECK(for AVX encoding of SSE instructions, libc_cv_cc_sse2avx, [dnl +if AC_TRY_COMMAND([${CC-cc} -msse2avx -xc /dev/null -S -o /dev/null]); then + libc_cv_cc_sse2avx=yes +else + libc_cv_cc_sse2avx=no +fi]) +if test $libc_cv_cc_sse2avx = yes; then + AC_DEFINE(HAVE_SSE2AVX_SUPPORT) +fi + dnl Check if -mfma4 works. AC_CACHE_CHECK(for FMA4 support, libc_cv_cc_fma4, [dnl if AC_TRY_COMMAND([${CC-cc} -mfma4 -xc /dev/null -S -o /dev/null]); then |