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