diff options
Diffstat (limited to 'sysdeps/mips')
-rw-r--r-- | sysdeps/mips/Makefile | 9 | ||||
-rw-r--r-- | sysdeps/mips/fpu/math-use-builtins-fma.h | 36 | ||||
-rw-r--r-- | sysdeps/mips/mips32/libm-test-ulps | 4 | ||||
-rw-r--r-- | sysdeps/mips/mips64/libm-test-ulps | 6 |
4 files changed, 50 insertions, 5 deletions
diff --git a/sysdeps/mips/Makefile b/sysdeps/mips/Makefile index d770e59fc9..d189973aa0 100644 --- a/sysdeps/mips/Makefile +++ b/sysdeps/mips/Makefile @@ -23,6 +23,15 @@ ASFLAGS-.o += $(pie-default) ASFLAGS-.op += $(pie-default) ifeq ($(subdir),elf) + +# These tests fail on all mips configurations (BZ 29404) +test-xfail-tst-audit24a = yes +test-xfail-tst-audit24b = yes +test-xfail-tst-audit24c = yes +test-xfail-tst-audit24d = yes +test-xfail-tst-audit25a = yes +test-xfail-tst-audit25b = yes + ifneq ($(o32-fpabi),) tests += tst-abi-interlink diff --git a/sysdeps/mips/fpu/math-use-builtins-fma.h b/sysdeps/mips/fpu/math-use-builtins-fma.h new file mode 100644 index 0000000000..57108f968e --- /dev/null +++ b/sysdeps/mips/fpu/math-use-builtins-fma.h @@ -0,0 +1,36 @@ +/* Copyright (C) 2024 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + <https://www.gnu.org/licenses/>. */ + +/* MIPSr6 has MADDF.s/MADDF.d instructions, which are fused. In MIPS + ISA, double support can be subsetted. Only FMAF is enabled for this + case. */ + +#include <sysdep.h> + +#if __mips_isa_rev >= 6 +# ifdef __mips_single_float +# define USE_FMA_BUILTIN 0 +# else +# define USE_FMA_BUILTIN 1 +# endif +# define USE_FMAF_BUILTIN 1 +#else +# define USE_FMA_BUILTIN 0 +# define USE_FMAF_BUILTIN 0 +#endif +#define USE_FMAL_BUILTIN 0 +#define USE_FMAF128_BUILTIN 0 diff --git a/sysdeps/mips/mips32/libm-test-ulps b/sysdeps/mips/mips32/libm-test-ulps index 1c27b6615b..83772d5772 100644 --- a/sysdeps/mips/mips32/libm-test-ulps +++ b/sysdeps/mips/mips32/libm-test-ulps @@ -1015,7 +1015,7 @@ float: 3 Function: "log2p1": double: 1 -float: 1 +float: 2 ldouble: 1 Function: "log2p1_downward": @@ -1029,7 +1029,7 @@ float: 2 ldouble: 2 Function: "log2p1_upward": -double: 1 +double: 2 float: 2 ldouble: 1 diff --git a/sysdeps/mips/mips64/libm-test-ulps b/sysdeps/mips/mips64/libm-test-ulps index 902551b448..0addfd6cb4 100644 --- a/sysdeps/mips/mips64/libm-test-ulps +++ b/sysdeps/mips/mips64/libm-test-ulps @@ -1272,7 +1272,7 @@ ldouble: 1 Function: "log2p1": double: 1 -float: 1 +float: 2 ldouble: 3 Function: "log2p1_downward": @@ -1286,9 +1286,9 @@ float: 2 ldouble: 2 Function: "log2p1_upward": -double: 1 +double: 2 float: 2 -ldouble: 2 +ldouble: 3 Function: "log_downward": float: 2 |