about summary refs log tree commit diff
path: root/sysdeps/x86_64/fpu/multiarch/s_tan.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2012-01-26 09:45:54 -0500
committerUlrich Drepper <drepper@gmail.com>2012-01-26 09:45:54 -0500
commit08cf777f9e7f6d826658a99c7d77a359f73a45bf (patch)
tree89cdc5e4339c060b4e0ccaab79a2924c4989ab9c /sysdeps/x86_64/fpu/multiarch/s_tan.c
parentafc5ed09cbce5d6fd48b3a8c5ec427b31f996880 (diff)
downloadglibc-08cf777f9e7f6d826658a99c7d77a359f73a45bf.tar.gz
glibc-08cf777f9e7f6d826658a99c7d77a359f73a45bf.tar.xz
glibc-08cf777f9e7f6d826658a99c7d77a359f73a45bf.zip
Really fix AVX tests
There is no problem with strcmp, it doesn't use the YMM registers.
The math routines might since gcc perhaps generates such code.
Introduce bit_YMM_USBALE and use it in the math routines.
Diffstat (limited to 'sysdeps/x86_64/fpu/multiarch/s_tan.c')
-rw-r--r--sysdeps/x86_64/fpu/multiarch/s_tan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/x86_64/fpu/multiarch/s_tan.c b/sysdeps/x86_64/fpu/multiarch/s_tan.c
index 8f6601e17c..3047155cec 100644
--- a/sysdeps/x86_64/fpu/multiarch/s_tan.c
+++ b/sysdeps/x86_64/fpu/multiarch/s_tan.c
@@ -12,7 +12,8 @@ extern double __tan_fma4 (double);
 #  define __tan_fma4 ((void *) 0)
 # endif
 
-libm_ifunc (tan, HAS_FMA4 ? __tan_fma4 : HAS_AVX ? __tan_avx : __tan_sse2);
+libm_ifunc (tan, (HAS_FMA4 ? __tan_fma4 :
+		  HAS_YMM_USABLE ? __tan_avx : __tan_sse2));
 
 # define tan __tan_sse2
 #endif