diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-10-02 16:48:34 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-10-11 06:01:01 -0700 |
commit | 69bf858f681588d57c1b5d9d62a7951cda1549f6 (patch) | |
tree | cd01f81bc73ecc540f144472b5fe42c1dbf24e12 /sysdeps/x86_64/configure.in | |
parent | 54a417345edca0015e70e8b360b7f83ade5a7507 (diff) | |
download | glibc-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.in')
-rw-r--r-- | sysdeps/x86_64/configure.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/x86_64/configure.in b/sysdeps/x86_64/configure.in index 94bcd19f3c..3a38740bf0 100644 --- a/sysdeps/x86_64/configure.in +++ b/sysdeps/x86_64/configure.in @@ -21,6 +21,13 @@ if test $libc_cv_cc_avx = yes; then AC_DEFINE(HAVE_AVX_SUPPORT) fi +dnl Check if -mavx -mprefer-avx128 works. +AC_CACHE_CHECK(-mavx -mprefer-avx128 support, libc_cv_cc_avx128, [dnl +LIBC_TRY_CC_OPTION([-mavx -mprefer-avx128], + [libc_cv_cc_avx128=yes], + [libc_cv_cc_avx128=no]) +]) + dnl Check if -msse2avx works. AC_CACHE_CHECK(for AVX encoding of SSE instructions, libc_cv_cc_sse2avx, [dnl LIBC_TRY_CC_OPTION([-msse2avx], |