Use dbl-64 fma for MIPS64.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 1 Jun 2012 19:56:36 +0000 (19:56 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 1 Jun 2012 19:57:06 +0000 (19:57 +0000)
ChangeLog.mips
sysdeps/mips/mips64/n32/s_fma.c [new file with mode: 0644]
sysdeps/mips/mips64/n64/s_fma.c [new file with mode: 0644]

index 5cd25e7..853f286 100644 (file)
@@ -1,5 +1,8 @@
 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/mips/mips64/n32/s_fma.c: New file.
+       * sysdeps/mips/mips64/n64/s_fma.c: Likewise.
+
        * sysdeps/unix/sysv/linux/mips/Makefile (abi-n32-condition): Fix
        typo.
 
diff --git a/sysdeps/mips/mips64/n32/s_fma.c b/sysdeps/mips/mips64/n32/s_fma.c
new file mode 100644 (file)
index 0000000..74a1e01
--- /dev/null
@@ -0,0 +1,6 @@
+/* MIPS long double is implemented in software by fp-bit (as of GCC
+   4.7) without support for exceptions or rounding modes, so the fma
+   implementation in terms of long double is slow and will not produce
+   correctly rounding results.  */
+
+#include <sysdeps/ieee754/dbl-64/s_fma.c>
diff --git a/sysdeps/mips/mips64/n64/s_fma.c b/sysdeps/mips/mips64/n64/s_fma.c
new file mode 100644 (file)
index 0000000..74a1e01
--- /dev/null
@@ -0,0 +1,6 @@
+/* MIPS long double is implemented in software by fp-bit (as of GCC
+   4.7) without support for exceptions or rounding modes, so the fma
+   implementation in terms of long double is slow and will not produce
+   correctly rounding results.  */
+
+#include <sysdeps/ieee754/dbl-64/s_fma.c>