]> Savannah Git Hosting - gnulib.git/commitdiff
fenv-rounding: Avoid a test failure on NetBSD/sparc64.
authorBruno Haible <bruno@clisp.org>
Sat, 4 Nov 2023 13:18:28 +0000 (14:18 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 4 Nov 2023 13:24:53 +0000 (14:24 +0100)
* tests/test-fenv-round.c (test_towardzero, test_upward, test_downward):
Skip the 'long double' tests on NetBSD/sparc64.
* doc/posix-functions/fesetround.texi: Mention the problem with
'long double' operations on some platforms.

ChangeLog
doc/posix-functions/fesetround.texi
tests/test-fenv-round.c

index 516e59586d0ed9f6e9a71e794efcc9e83830b62c..355ad2396d2faf8d552fe7ae6f4951bb130f6782 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-11-04  Bruno Haible  <bruno@clisp.org>
+
+       fenv-rounding: Avoid a test failure on NetBSD/sparc64.
+       * tests/test-fenv-round.c (test_towardzero, test_upward, test_downward):
+       Skip the 'long double' tests on NetBSD/sparc64.
+       * doc/posix-functions/fesetround.texi: Mention the problem with
+       'long double' operations on some platforms.
+
 2023-11-04  Bruno Haible  <bruno@clisp.org>
 
        fenv-rounding: Improve code for MSVC.
index f0c74c346787f751d04cdd7d5b75cd52997c302f..73d6c034fa279938325951fed187c7ffb83ae86f 100644 (file)
@@ -18,4 +18,7 @@ MSVC 14.
 
 Portability problems not fixed by Gnulib:
 @itemize
+@item
+The rounding mode has no effect on @code{long double} operations on some platforms:
+FreeBSD/arm64, NetBSD/sparc64.
 @end itemize
index aba783cc790a785a5d77834323ec7fcb29e198b5..b697fb13010d73c1e90ce4505cefe8e21fa678b3 100644 (file)
@@ -45,7 +45,7 @@ test_towardzero ()
     a = -1; b = 3; q = a / b; p = b * q;
     ASSERT (p > a);
   }
-#if !(defined __FreeBSD__ && defined __aarch64__)
+#if !((defined __FreeBSD__ && defined __aarch64__) || (defined __NetBSD__ && defined __sparcv9 /* sparc64 */))
   {
     long double volatile a, b, q, p;
 
@@ -80,7 +80,7 @@ test_upward ()
     a = -1; b = 3; q = a / b; p = b * q;
     ASSERT (p > a);
   }
-#if !(defined __FreeBSD__ && defined __aarch64__)
+#if !((defined __FreeBSD__ && defined __aarch64__) || (defined __NetBSD__ && defined __sparcv9 /* sparc64 */))
   {
     long double volatile a, b, q, p;
 
@@ -115,7 +115,7 @@ test_downward ()
     a = -1; b = 3; q = a / b; p = b * q;
     ASSERT (p < a);
   }
-#if !(defined __FreeBSD__ && defined __aarch64__)
+#if !((defined __FreeBSD__ && defined __aarch64__) || (defined __NetBSD__ && defined __sparcv9 /* sparc64 */))
   {
     long double volatile a, b, q, p;