Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Dec 2025 10:44:16 +0000
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Cc:        Siva Mahadevan <me@svmhdvn.name>
Subject:   git: 405188aeac54 - main - lib/msun/tests: xfail remaining failing tests on non-x86 archs
Message-ID:  <69428980.a445.519760c4@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by lwhsu:

URL: https://cgit.FreeBSD.org/src/commit/?id=405188aeac540f7666dfde37c2f32d222119f56e

commit 405188aeac540f7666dfde37c2f32d222119f56e
Author:     Siva Mahadevan <me@svmhdvn.name>
AuthorDate: 2025-10-08 20:40:15 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2025-12-17 10:43:37 +0000

    lib/msun/tests: xfail remaining failing tests on non-x86 archs
    
    These are the remaining trivial xfail cases where no other
    test logic changes are necessary.
    
    Signed-off-by: Siva Mahadevan <me@svmhdvn.name>
    PR:             290099
    MFC after:      3 days
    Sponsored by:   The FreeBSD Foundation
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/1871
---
 lib/msun/tests/cexp_test.c        |  3 +++
 lib/msun/tests/ctrig_test.c       |  9 +++++++++
 lib/msun/tests/exponential_test.c |  3 +++
 lib/msun/tests/fma_test.c         |  9 +++++++++
 lib/msun/tests/invctrig_test.c    | 15 +++++++++++++++
 lib/msun/tests/logarithm_test.c   | 11 +++++++++--
 lib/msun/tests/lround_test.c      |  3 +++
 lib/msun/tests/nan_test.c         |  3 +++
 lib/msun/tests/nearbyint_test.c   |  3 +++
 lib/msun/tests/next_test.c        |  9 +++++++++
 lib/msun/tests/trig_test.c        |  4 +++-
 11 files changed, 69 insertions(+), 3 deletions(-)

diff --git a/lib/msun/tests/cexp_test.c b/lib/msun/tests/cexp_test.c
index 35b23990a3f3..a32872958c42 100644
--- a/lib/msun/tests/cexp_test.c
+++ b/lib/msun/tests/cexp_test.c
@@ -232,6 +232,9 @@ ATF_TC_BODY(imaginaries, tc)
 ATF_TC_WITHOUT_HEAD(small);
 ATF_TC_BODY(small, tc)
 {
+#if defined(__riscv)
+	atf_tc_expect_death("https://bugs.freebsd.org/290099");
+#endif
 	static const double tests[] = {
 	     /* csqrt(a + bI) = x + yI */
 	     /* a	b	x			y */
diff --git a/lib/msun/tests/ctrig_test.c b/lib/msun/tests/ctrig_test.c
index 2a5f8b5982b8..778612430c93 100644
--- a/lib/msun/tests/ctrig_test.c
+++ b/lib/msun/tests/ctrig_test.c
@@ -302,6 +302,9 @@ ATF_TC_HEAD(test_axes, tc)
 }
 ATF_TC_BODY(test_axes, tc)
 {
+#if defined(__riscv)
+	atf_tc_expect_death("https://bugs.freebsd.org/290099");
+#endif
 	static const long double nums[] = {
 	    M_PI / 4, M_PI / 2, 3 * M_PI / 4,
 	    5 * M_PI / 4, 3 * M_PI / 2, 7 * M_PI / 4,
@@ -365,6 +368,9 @@ ATF_TC_HEAD(test_small_inputs, tc)
 }
 ATF_TC_BODY(test_small_inputs, tc)
 {
+#if defined(__riscv)
+	atf_tc_expect_death("https://bugs.freebsd.org/290099");
+#endif
 	/*
 	 * z =  0.5 + i Pi/4
 	 *     sinh(z) = (sinh(0.5) + i cosh(0.5)) * sqrt(2)/2
@@ -432,6 +438,9 @@ ATF_TC_HEAD(test_large_inputs, tc)
 }
 ATF_TC_BODY(test_large_inputs, tc)
 {
+#if defined(__riscv)
+	atf_tc_expect_death("https://bugs.freebsd.org/290099");
+#endif
 	long double complex z;
 
 	/* tanh() uses a threshold around x=22, so check both sides. */
diff --git a/lib/msun/tests/exponential_test.c b/lib/msun/tests/exponential_test.c
index 9dc3b2698744..c3dcca869dcb 100644
--- a/lib/msun/tests/exponential_test.c
+++ b/lib/msun/tests/exponential_test.c
@@ -159,6 +159,9 @@ ATF_TC_BODY(exp2l, tc)
 ATF_TC_WITHOUT_HEAD(generic);
 ATF_TC_BODY(generic, tc)
 {
+#if defined(__aarch64__) || defined(__riscv)
+	atf_tc_expect_fail("https://bugs.freebsd.org/290099");
+#endif
 	run_generic_tests();
 }
 
diff --git a/lib/msun/tests/fma_test.c b/lib/msun/tests/fma_test.c
index 2cbfd6d6c296..ec57fc34c1b1 100644
--- a/lib/msun/tests/fma_test.c
+++ b/lib/msun/tests/fma_test.c
@@ -121,6 +121,9 @@ test_zeroes(void)
 static void
 test_infinities(void)
 {
+#if defined(__aarch64__) || defined(__riscv)
+	atf_tc_expect_fail("https://bugs.freebsd.org/290099");
+#endif
 	testall(INFINITY, 1.0, -1.0, INFINITY, ALL_STD_EXCEPT, 0);
 	testall(-1.0, INFINITY, 0.0, -INFINITY, ALL_STD_EXCEPT, 0);
 	testall(0.0, 0.0, INFINITY, INFINITY, ALL_STD_EXCEPT, 0);
@@ -471,6 +474,9 @@ static const int rmodes[] = {
 ATF_TC_WITHOUT_HEAD(zeroes);
 ATF_TC_BODY(zeroes, tc)
 {
+#if defined(__aarch64__) || defined(__riscv)
+	atf_tc_expect_fail("https://bugs.freebsd.org/290099");
+#endif
 	for (size_t i = 0; i < nitems(rmodes); i++) {
 		debug("rmode = %d\n", rmodes[i]);
 		fesetround(rmodes[i]);
@@ -481,6 +487,9 @@ ATF_TC_BODY(zeroes, tc)
 ATF_TC_WITHOUT_HEAD(infinities);
 ATF_TC_BODY(infinities, tc)
 {
+#if defined(__powerpc64__)
+	atf_tc_expect_fail("https://bugs.freebsd.org/290099");
+#endif
 	for (size_t i = 0; i < nitems(rmodes); i++) {
 		debug("rmode = %d\n", rmodes[i]);
 		fesetround(rmodes[i]);
diff --git a/lib/msun/tests/invctrig_test.c b/lib/msun/tests/invctrig_test.c
index 18d59e6f5416..8380557f02b6 100644
--- a/lib/msun/tests/invctrig_test.c
+++ b/lib/msun/tests/invctrig_test.c
@@ -123,6 +123,9 @@ c3pi = 9.42477796076937971538793014983850839L;
 ATF_TC_WITHOUT_HEAD(zero);
 ATF_TC_BODY(zero, tc)
 {
+#if defined(__riscv)
+	atf_tc_expect_death("https://bugs.freebsd.org/290099");
+#endif
 	long double complex zero = CMPLXL(0.0, 0.0);
 
 	testall_tol(cacosh, zero, CMPLXL(0.0, pi / 2), 1);
@@ -143,6 +146,9 @@ ATF_TC_BODY(zero, tc)
 ATF_TC_WITHOUT_HEAD(nan);
 ATF_TC_BODY(nan, tc)
 {
+#if defined(__riscv)
+	atf_tc_expect_death("https://bugs.freebsd.org/290099");
+#endif
 	long double complex nan_nan = CMPLXL(NAN, NAN);
 	long double complex z;
 
@@ -222,6 +228,9 @@ ATF_TC_BODY(nan, tc)
 ATF_TC_WITHOUT_HEAD(inf);
 ATF_TC_BODY(inf, tc)
 {
+#if defined(__riscv)
+	atf_tc_expect_death("https://bugs.freebsd.org/290099");
+#endif
 	long double complex z;
 
 	/*
@@ -269,6 +278,9 @@ ATF_TC_BODY(inf, tc)
 ATF_TC_WITHOUT_HEAD(axes);
 ATF_TC_BODY(axes, tc)
 {
+#if defined(__riscv)
+	atf_tc_expect_death("https://bugs.freebsd.org/290099");
+#endif
 	static const long double nums[] = {
 		-2, -1, -0.5, 0.5, 1, 2
 	};
@@ -306,6 +318,9 @@ ATF_TC_BODY(axes, tc)
 ATF_TC_WITHOUT_HEAD(small);
 ATF_TC_BODY(small, tc)
 {
+#if defined(__riscv)
+	atf_tc_expect_death("https://bugs.freebsd.org/290099");
+#endif
 	/*
 	 * z =  0.75 + i 0.25
 	 *     acos(z) = Pi/4 - i ln(2)/2
diff --git a/lib/msun/tests/logarithm_test.c b/lib/msun/tests/logarithm_test.c
index de80b5b45615..df1fcdc8627d 100644
--- a/lib/msun/tests/logarithm_test.c
+++ b/lib/msun/tests/logarithm_test.c
@@ -92,7 +92,9 @@
 ATF_TC_WITHOUT_HEAD(generic_tests);
 ATF_TC_BODY(generic_tests, tc)
 {
-
+#if defined(__aarch64__) || defined(__riscv)
+	atf_tc_expect_fail("https://bugs.freebsd.org/290099");
+#endif
 	/* log(1) == 0, no exceptions raised */
 	testall0(1.0, 0.0, ALL_STD_EXCEPT, 0);
 	testall1(0.0, 0.0, ALL_STD_EXCEPT, 0);
@@ -179,6 +181,9 @@ ATF_TC_BODY(roundingmode_tests, tc)
 ATF_TC_WITHOUT_HEAD(accuracy_tests);
 ATF_TC_BODY(accuracy_tests, tc)
 {
+#if defined(__riscv)
+	atf_tc_expect_death("https://bugs.freebsd.org/290099");
+#endif
 	static const struct {
 		float x;
 		long double log2x;
@@ -248,7 +253,9 @@ ATF_TC_BODY(log1p_accuracy_tests, tc)
 	if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false))
 		atf_tc_expect_fail("https://bugs.freebsd.org/253984");
 #endif
-
+#if defined(__riscv)
+	atf_tc_expect_death("https://bugs.freebsd.org/290099");
+#endif
 	test_tol(log1pf, 0x0.333333p0F,
 		 1.82321546859847114303367992804596800640e-1L, FLT_ULP());
 	test_tol(log1p, 0x0.3333333333333p0,
diff --git a/lib/msun/tests/lround_test.c b/lib/msun/tests/lround_test.c
index a61672617081..e22f59c323a2 100644
--- a/lib/msun/tests/lround_test.c
+++ b/lib/msun/tests/lround_test.c
@@ -65,6 +65,9 @@
 ATF_TC_WITHOUT_HEAD(main);
 ATF_TC_BODY(main, tc)
 {
+#if defined(__powerpc64__)
+	atf_tc_expect_fail("https://bugs.freebsd.org/290099");
+#endif
 	testall(0.0, 0, 0);
 	testall(0.25, 0, FE_INEXACT);
 	testall(0.5, 1, FE_INEXACT);
diff --git a/lib/msun/tests/nan_test.c b/lib/msun/tests/nan_test.c
index 32c5c39af0c1..3dcea3f9e402 100644
--- a/lib/msun/tests/nan_test.c
+++ b/lib/msun/tests/nan_test.c
@@ -105,6 +105,9 @@ testnan(const char *nan_format)
 ATF_TC_WITHOUT_HEAD(nan);
 ATF_TC_BODY(nan, tc)
 {
+#if defined(__riscv)
+	atf_tc_expect_fail("https://bugs.freebsd.org/290099");
+#endif
 	/* Die if a signalling NaN is returned */
 	feenableexcept(FE_INVALID);
 
diff --git a/lib/msun/tests/nearbyint_test.c b/lib/msun/tests/nearbyint_test.c
index 749c2bb23c99..fa1dc7d739be 100644
--- a/lib/msun/tests/nearbyint_test.c
+++ b/lib/msun/tests/nearbyint_test.c
@@ -152,6 +152,9 @@ test_modf(int testindex)
 ATF_TC_WITHOUT_HEAD(nearbyint);
 ATF_TC_BODY(nearbyint, tc)
 {
+#if defined(__aarch64__) || defined(__riscv)
+	atf_tc_expect_fail("https://bugs.freebsd.org/290099");
+#endif
 	unsigned i;
 
 	for (i = 0; i < nitems(tests); i++) {
diff --git a/lib/msun/tests/next_test.c b/lib/msun/tests/next_test.c
index 282e47d783a0..a14b1ba433d9 100644
--- a/lib/msun/tests/next_test.c
+++ b/lib/msun/tests/next_test.c
@@ -79,6 +79,9 @@ static const long double ldbl_eps = LDBL_EPSILON;
 ATF_TC_WITHOUT_HEAD(zeros);
 ATF_TC_BODY(zeros, tc)
 {
+#if defined(__aarch64__) || defined(__riscv)
+	atf_tc_expect_fail("https://bugs.freebsd.org/290099");
+#endif
 	long double ldbl_small;
 
 #ifdef	__i386__
@@ -164,6 +167,9 @@ ATF_TC_BODY(ordinary, tc)
 ATF_TC_WITHOUT_HEAD(boundaries);
 ATF_TC_BODY(boundaries, tc)
 {
+#if defined(__aarch64__) || defined(__riscv)
+	atf_tc_expect_fail("https://bugs.freebsd.org/290099");
+#endif
 	/*
 	 * Tests at word boundaries, normalization boundaries, etc.
 	 */
@@ -211,6 +217,9 @@ ATF_TC_BODY(boundaries, tc)
 ATF_TC_WITHOUT_HEAD(overflow);
 ATF_TC_BODY(overflow, tc)
 {
+#if defined(__aarch64__) || defined(__riscv)
+	atf_tc_expect_fail("https://bugs.freebsd.org/290099");
+#endif
 	long double ldbl_max;
 	/*
 	 * We can't use a compile-time constant here because gcc on
diff --git a/lib/msun/tests/trig_test.c b/lib/msun/tests/trig_test.c
index fe8c5298093a..494b5b10b64c 100644
--- a/lib/msun/tests/trig_test.c
+++ b/lib/msun/tests/trig_test.c
@@ -85,7 +85,9 @@ ATF_TC_HEAD(special, tc)
 }
 ATF_TC_BODY(special, tc)
 {
-
+#if defined(__aarch64__) || defined(__riscv)
+	atf_tc_expect_fail("https://bugs.freebsd.org/290099");
+#endif
 	/* Values at 0 should be exact. */
 	testall(tan, 0.0, 0.0, ALL_STD_EXCEPT, 0);
 	testall(tan, -0.0, -0.0, ALL_STD_EXCEPT, 0);


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69428980.a445.519760c4>