about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-10-22 19:53:33 -0400
committerUlrich Drepper <drepper@gmail.com>2011-10-22 19:53:33 -0400
commitfa36182bda38159b39905aa93a47563ab20737b4 (patch)
treeaa1385b86907ca62c67a91ffe992aae678f3255c /sysdeps
parenta1a8716924f31400e81319c9124e1182fd9e8e83 (diff)
downloadglibc-fa36182bda38159b39905aa93a47563ab20737b4.tar.gz
glibc-fa36182bda38159b39905aa93a47563ab20737b4.tar.xz
glibc-fa36182bda38159b39905aa93a47563ab20737b4.zip
Improve DLA_FMA for FMA4
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/ieee754/dbl-64/dla.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/ieee754/dbl-64/dla.h b/sysdeps/ieee754/dbl-64/dla.h
index 9f095f9bf5..0ca87620cb 100644
--- a/sysdeps/ieee754/dbl-64/dla.h
+++ b/sysdeps/ieee754/dbl-64/dla.h
@@ -40,8 +40,8 @@
 # ifdef __FMA4__
 #  define DLA_FMA(x,y,z) \
 	   ({ double __zz; \
-	      asm ("vfmaddsd %3, %2, %1, %0"				      \
-		   : "=x" (__zz) : "x" (x), "xm" (y), "x" (-z));	      \
+	      asm ("vfmsubsd %3, %2, %1, %0"				      \
+		   : "=x" (__zz) : "x" (x), "xm" (y), "x" (z));		      \
 	      __zz; })
 # endif
 #endif