Use soft-fp fma for no-FPU ColdFire (bug 13304)
Joseph Myers
joseph@codesourcery.com
Tue Sep 15 15:36:00 GMT 2015
Systems without floating-point exceptions and rounding modes should
use the soft-fp versions of fmaf and fma, not the sysdeps/ieee754
versions that rely on setting rounding to zero and testing for the
"inexact" exception; this has been noted on
<https://sourceware.org/glibc/wiki/PortStatus> for some time. This
patch makes no-FPU ColdFire use the soft-fp files; sfp-machine.h is
made to include the nios2 version of sfp-machine.h which seems
sufficiently generic for 32-bit systems.
Untested. It's quite likely there are existing build problems for
no-FPU ColdFire (in particular, it may need a math_private.h like
those for MicroBlaze / Nios II / Tile).
2015-09-15 Joseph Myers <joseph@codesourcery.com>
[BZ #13304]
* sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
* sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
* sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
diff --git a/sysdeps/m68k/coldfire/nofpu/s_fma.c b/sysdeps/m68k/coldfire/nofpu/s_fma.c
new file mode 100644
index 0000000..d9613fa
--- /dev/null
+++ b/sysdeps/m68k/coldfire/nofpu/s_fma.c
@@ -0,0 +1 @@
+#include <soft-fp/fmadf4.c>
diff --git a/sysdeps/m68k/coldfire/nofpu/s_fmaf.c b/sysdeps/m68k/coldfire/nofpu/s_fmaf.c
new file mode 100644
index 0000000..aa5c9b2
--- /dev/null
+++ b/sysdeps/m68k/coldfire/nofpu/s_fmaf.c
@@ -0,0 +1 @@
+#include <soft-fp/fmasf4.c>
diff --git a/sysdeps/m68k/coldfire/nofpu/sfp-machine.h b/sysdeps/m68k/coldfire/nofpu/sfp-machine.h
new file mode 100644
index 0000000..e4ad79e
--- /dev/null
+++ b/sysdeps/m68k/coldfire/nofpu/sfp-machine.h
@@ -0,0 +1 @@
+#include <sysdeps/nios2/sfp-machine.h>
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list