[PATCH] linux: Add soft-fp folder for arm with --without-fp

Adhemerval Zanella adhemerval.zanella@linaro.org
Wed Mar 4 17:11:00 GMT 2020


Currently --without-fp does not add the soft-fp folder before
the generic dbl-64 and flt-32 on arm-linux-gnueabi.  This patch adds
the required Implies file (similar as powerpc, mips32, and
m68k-coldfire have done).

It fixes the math failures:

FAIL: math/test-double-fma
FAIL: math/test-float-double-add
FAIL: math/test-float-double-div
FAIL: math/test-float-double-mul
FAIL: math/test-float-double-sub
FAIL: math/test-float-fma
FAIL: math/test-float-ldouble-add
FAIL: math/test-float-ldouble-div
FAIL: math/test-float-ldouble-mul
FAIL: math/test-float-ldouble-sub
FAIL: math/test-float32-float32x-add
FAIL: math/test-float32-float32x-div
FAIL: math/test-float32-float32x-mul
FAIL: math/test-float32-float32x-sub
FAIL: math/test-float32-float64-add
FAIL: math/test-float32-float64-div
FAIL: math/test-float32-float64-mul
FAIL: math/test-float32-float64-sub
FAIL: math/test-float32-fma
FAIL: math/test-float32x-fma
FAIL: math/test-float64-fma
FAIL: math/test-idouble-fma
FAIL: math/test-ifloat-fma
FAIL: math/test-ifloat32-fma
FAIL: math/test-ifloat32x-fma
FAIL: math/test-ifloat64-fma
FAIL: math/test-ildouble-fma
FAIL: math/test-ldouble-fma

Since the generic fadd, fdiv, fmul, fsub, and fma routines for float
and double requires fenv support to be correctly rounded.

Checked with a arm-linux-gnueabi configured with --without-fp.
---
 sysdeps/unix/sysv/linux/arm/nofpu/Implies | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 sysdeps/unix/sysv/linux/arm/nofpu/Implies

diff --git a/sysdeps/unix/sysv/linux/arm/nofpu/Implies b/sysdeps/unix/sysv/linux/arm/nofpu/Implies
new file mode 100644
index 0000000000..c90dd7fd5c
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/arm/nofpu/Implies
@@ -0,0 +1 @@
+arm/nofpu
-- 
2.17.1



More information about the Libc-alpha mailing list