summaryrefslogtreecommitdiffstats
path: root/test/math/libm-test.inc
diff options
context:
space:
mode:
Diffstat (limited to 'test/math/libm-test.inc')
-rw-r--r--test/math/libm-test.inc56
1 files changed, 34 insertions, 22 deletions
diff --git a/test/math/libm-test.inc b/test/math/libm-test.inc
index c9c2c8b41..0309e5a42 100644
--- a/test/math/libm-test.inc
+++ b/test/math/libm-test.inc
@@ -2883,6 +2883,7 @@ frexp_test (void)
static void
gamma_test (void)
{
+#if !defined TEST_DOUBLE && !defined TEST_FLOAT && !defined TEST_LDOUBLE
errno = 0;
FUNC(gamma) (1);
@@ -2906,8 +2907,10 @@ gamma_test (void)
TEST_f_f1 (gamma, -0.5, M_LOG_2_SQRT_PIl, -1);
END (gamma);
+#endif
}
+
static void
hypot_test (void)
{
@@ -3006,14 +3009,15 @@ isnormal_test (void)
static void
j0_test (void)
{
+#if !defined TEST_DOUBLE && !defined TEST_FLOAT && !defined TEST_LDOUBLE
errno = 0;
-#if 0
+# if 0
FLOAT s, c;
FUNC (sincos) (0, &s, &c);
if (errno == ENOSYS)
/* Required function not implemented. */
return;
-#endif
+# endif
FUNC(j0) (0);
if (errno == ENOSYS)
/* Function not implemented. */
@@ -3037,20 +3041,22 @@ j0_test (void)
TEST_f_f (j0, -4.0, -3.9714980986384737228659076845169804197562E-1L);
END (j0);
+#endif
}
static void
j1_test (void)
{
+#if !defined TEST_DOUBLE && !defined TEST_FLOAT && !defined TEST_LDOUBLE
errno = 0;
-#if 0
+# if 0
FLOAT s, c;
FUNC (sincos) (0, &s, &c);
if (errno == ENOSYS)
/* Required function not implemented. */
return;
-#endif
+# endif
FUNC(j1) (0);
if (errno == ENOSYS)
/* Function not implemented. */
@@ -3074,19 +3080,21 @@ j1_test (void)
TEST_f_f (j1, 10.0, 0.0434727461688614366697487680258592883L);
END (j1);
+#endif
}
static void
jn_test (void)
{
+#if !defined TEST_DOUBLE && !defined TEST_FLOAT && !defined TEST_LDOUBLE
errno = 0;
-#if 0
+# if 0
FLOAT s, c;
FUNC (sincos) (0, &s, &c);
if (errno == ENOSYS)
/* Required function not implemented. */
return;
-#endif
+# endif
FUNC(jn) (1, 1);
if (errno == ENOSYS)
/* Function not implemented. */
@@ -3148,6 +3156,7 @@ jn_test (void)
TEST_ff_f (jn, 10, 10.0, 0.207486106633358857697278723518753428L);
END (jn);
+#endif
}
@@ -4231,8 +4240,9 @@ round_test (void)
static void
scalb_test (void)
{
-
+#ifdef __UCLIBC_SUSV3_LEGACY__
START (scalb);
+#ifndef TEST_LDOUBLE /* uclibc doesn't have scalbl */
TEST_ff_f (scalb, 2.0, 0.5, nan_value, INVALID_EXCEPTION);
TEST_ff_f (scalb, 3.0, -2.5, nan_value, INVALID_EXCEPTION);
@@ -4283,8 +4293,9 @@ scalb_test (void)
TEST_ff_f (scalb, 0.8L, 4, 12.8L);
TEST_ff_f (scalb, -0.854375L, 5, -27.34L);
-
+#endif
END (scalb);
+#endif
}
@@ -4310,7 +4321,6 @@ scalbn_test (void)
}
-#if 0
static void
scalbln_test (void)
{
@@ -4331,7 +4341,6 @@ scalbln_test (void)
END (scalbn);
}
-#endif
static void
@@ -4535,7 +4544,6 @@ tanh_test (void)
END (tanh);
}
-#if 0
static void
tgamma_test (void)
{
@@ -4567,7 +4575,6 @@ tgamma_test (void)
END (tgamma);
}
-#endif
#if 0
@@ -4650,14 +4657,15 @@ trunc_test (void)
static void
y0_test (void)
{
+#if !defined TEST_DOUBLE && !defined TEST_FLOAT && !defined TEST_LDOUBLE
errno = 0;
-#if 0
+# if 0
FLOAT s, c;
FUNC (sincos) (0, &s, &c);
if (errno == ENOSYS)
/* Required function not implemented. */
return;
-#endif
+# endif
FUNC(y0) (1);
if (errno == ENOSYS)
/* Function not implemented. */
@@ -4680,20 +4688,22 @@ y0_test (void)
TEST_f_f (y0, 10.0, 0.0556711672835993914244598774101900481L);
END (y0);
+#endif
}
static void
y1_test (void)
{
+#if !defined TEST_DOUBLE && !defined TEST_FLOAT && !defined TEST_LDOUBLE
errno = 0;
-#if 0
+# if 0
FLOAT s, c;
FUNC (sincos) (0, &s, &c);
if (errno == ENOSYS)
/* Required function not implemented. */
return;
-#endif
+# endif
FUNC(y1) (1);
if (errno == ENOSYS)
/* Function not implemented. */
@@ -4716,20 +4726,22 @@ y1_test (void)
TEST_f_f (y1, 10.0, 0.249015424206953883923283474663222803L);
END (y1);
+#endif
}
static void
yn_test (void)
{
+#if !defined TEST_DOUBLE && !defined TEST_FLOAT && !defined TEST_LDOUBLE
errno = 0;
-#if 0
+# if 0
FLOAT s, c;
FUNC (sincos) (0, &s, &c);
if (errno == ENOSYS)
/* Required function not implemented. */
return;
-#endif
+# endif
FUNC(yn) (1, 1);
if (errno == ENOSYS)
/* Function not implemented. */
@@ -4787,13 +4799,14 @@ yn_test (void)
TEST_ff_f (yn, 10, 10.0, -0.359814152183402722051986577343560609L);
END (yn);
-
+#endif
}
-
+/* FIXME: Remove support for significand or only for OBSCURE_754_TESTS. */
static void
significand_test (void)
{
+#if !defined TEST_DOUBLE && !defined TEST_FLOAT && !defined TEST_LDOUBLE
/* significand returns the mantissa of the exponential representation. */
START (significand);
@@ -4802,6 +4815,7 @@ significand_test (void)
TEST_f_f (significand, 8.0, 1.0);
END (significand);
+#endif
}
@@ -5066,14 +5080,12 @@ main (int argc, char **argv)
#endif
/* Bessel functions: */
-#if 0
j0_test ();
j1_test ();
jn_test ();
y0_test ();
y1_test ();
yn_test ();
-#endif
if (output_ulps)
fclose (ulps_file);