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
<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.

	[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.
This commit is contained in:
Joseph Myers 2015-09-25 17:30:56 +00:00
parent 02c48b21b5
commit 775e99641e
4 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,10 @@
2015-09-25 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.
[BZ #13304]
* sysdeps/microblaze/s_fma.c: New file.
* sysdeps/microblaze/s_fmaf.c: Likewise.

View File

@ -0,0 +1 @@
#include <soft-fp/fmadf4.c>

View File

@ -0,0 +1 @@
#include <soft-fp/fmasf4.c>

View File

@ -0,0 +1 @@
#include <sysdeps/nios2/sfp-machine.h>