From 775e99641eca25a0dc9049253fe12b02c568f97a Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 25 Sep 2015 17:30:56 +0000 Subject: Use soft-fp fma for no-FPU ColdFire (bug 13304). 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 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. [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. --- ChangeLog | 5 +++++ sysdeps/m68k/coldfire/nofpu/s_fma.c | 1 + sysdeps/m68k/coldfire/nofpu/s_fmaf.c | 1 + sysdeps/m68k/coldfire/nofpu/sfp-machine.h | 1 + 4 files changed, 8 insertions(+) create mode 100644 sysdeps/m68k/coldfire/nofpu/s_fma.c create mode 100644 sysdeps/m68k/coldfire/nofpu/s_fmaf.c create mode 100644 sysdeps/m68k/coldfire/nofpu/sfp-machine.h diff --git a/ChangeLog b/ChangeLog index d76c280c67..ba7aa4e421 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2015-09-25 Joseph Myers + [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. + [BZ #13304] * sysdeps/microblaze/s_fma.c: New file. * sysdeps/microblaze/s_fmaf.c: Likewise. diff --git a/sysdeps/m68k/coldfire/nofpu/s_fma.c b/sysdeps/m68k/coldfire/nofpu/s_fma.c new file mode 100644 index 0000000000..d9613fa67c --- /dev/null +++ b/sysdeps/m68k/coldfire/nofpu/s_fma.c @@ -0,0 +1 @@ +#include diff --git a/sysdeps/m68k/coldfire/nofpu/s_fmaf.c b/sysdeps/m68k/coldfire/nofpu/s_fmaf.c new file mode 100644 index 0000000000..aa5c9b2d91 --- /dev/null +++ b/sysdeps/m68k/coldfire/nofpu/s_fmaf.c @@ -0,0 +1 @@ +#include diff --git a/sysdeps/m68k/coldfire/nofpu/sfp-machine.h b/sysdeps/m68k/coldfire/nofpu/sfp-machine.h new file mode 100644 index 0000000000..e4ad79e6bd --- /dev/null +++ b/sysdeps/m68k/coldfire/nofpu/sfp-machine.h @@ -0,0 +1 @@ +#include -- cgit 1.4.1