aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/libm-test.inc403
1 files changed, 212 insertions, 191 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index f8cd94781e..b1074328f0 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -326,6 +326,8 @@ static FLOAT max_error, real_max_error, imag_max_error;
static FLOAT prev_max_error, prev_real_max_error, prev_imag_max_error;
+static FLOAT max_valid_error;
+
#define BUILD_COMPLEX(real, imag) \
({ __complex__ FLOAT __retval; \
__real__ __retval = (real); \
@@ -364,7 +366,7 @@ find_ulps (const char *name, const struct ulp_data *data, size_t nmemb)
}
static void
-init_max_error (const char *name)
+init_max_error (const char *name, int exact)
{
max_error = 0;
real_max_error = 0;
@@ -377,6 +379,24 @@ init_max_error (const char *name)
prev_imag_max_error = find_ulps (name, func_imag_ulps,
(sizeof (func_imag_ulps)
/ sizeof (func_imag_ulps[0])));
+#if TEST_COND_ldbl_128ibm
+ /* The documented accuracy of IBM long double division is 3ulp (see
+ libgcc/config/rs6000/ibm-ldouble-format), so do not require
+ better accuracy for libm functions that are exactly defined for
+ other formats. */
+ max_valid_error = exact ? 3 : 14;
+#else
+ max_valid_error = exact ? 0 : 9;
+#endif
+ prev_max_error = (prev_max_error <= max_valid_error
+ ? prev_max_error
+ : max_valid_error);
+ prev_real_max_error = (prev_real_max_error <= max_valid_error
+ ? prev_real_max_error
+ : max_valid_error);
+ prev_imag_max_error = (prev_imag_max_error <= max_valid_error
+ ? prev_imag_max_error
+ : max_valid_error);
feclearexcept (FE_ALL_EXCEPT);
errno = 0;
}
@@ -384,7 +404,7 @@ init_max_error (const char *name)
static void
set_max_error (FLOAT current, FLOAT *curr_max_error)
{
- if (current > *curr_max_error)
+ if (current > *curr_max_error && current <= max_valid_error)
*curr_max_error = current;
}
@@ -798,7 +818,8 @@ check_float_internal (const char *test_name, FLOAT computed, FLOAT expected,
&& computed == 0.0 && expected == 0.0
&& signbit(computed) != signbit (expected))
ok = 0;
- else if (ulps <= 0.5 || (ulps <= max_ulp && !ignore_max_ulp))
+ else if ((ulps <= 0.5 && ulps <= max_valid_error)
+ || (ulps <= max_ulp && !ignore_max_ulp))
ok = 1;
else
ok = 0;
@@ -1585,9 +1606,9 @@ struct test_fFF_11_data
ROUND_RESTORE_ ## ROUNDING_MODE
/* Start and end the tests for a given function. */
-#define START(FUNC) \
+#define START(FUNC, EXACT) \
const char *this_func = #FUNC; \
- init_max_error (this_func)
+ init_max_error (this_func, EXACT)
#define END \
print_max_error (this_func)
#define END_COMPLEX \
@@ -1624,7 +1645,7 @@ static const struct test_f_f_data acos_test_data[] =
static void
acos_test (void)
{
- START (acos);
+ START (acos, 0);
RUN_TEST_LOOP_f_f (acos, acos_test_data, );
END;
}
@@ -1638,7 +1659,7 @@ static const struct test_f_f_data acos_tonearest_test_data[] =
static void
acos_test_tonearest (void)
{
- START (acos_tonearest);
+ START (acos_tonearest, 0);
RUN_TEST_LOOP_f_f (acos, acos_tonearest_test_data, FE_TONEAREST);
END;
}
@@ -1652,7 +1673,7 @@ static const struct test_f_f_data acos_towardzero_test_data[] =
static void
acos_test_towardzero (void)
{
- START (acos_towardzero);
+ START (acos_towardzero, 0);
RUN_TEST_LOOP_f_f (acos, acos_towardzero_test_data, FE_TOWARDZERO);
END;
}
@@ -1666,7 +1687,7 @@ static const struct test_f_f_data acos_downward_test_data[] =
static void
acos_test_downward (void)
{
- START (acos_downward);
+ START (acos_downward, 0);
RUN_TEST_LOOP_f_f (acos, acos_downward_test_data, FE_DOWNWARD);
END;
}
@@ -1680,7 +1701,7 @@ static const struct test_f_f_data acos_upward_test_data[] =
static void
acos_test_upward (void)
{
- START (acos_upward);
+ START (acos_upward, 0);
RUN_TEST_LOOP_f_f (acos, acos_upward_test_data, FE_UPWARD);
END;
}
@@ -1708,7 +1729,7 @@ static const struct test_f_f_data acosh_test_data[] =
static void
acosh_test (void)
{
- START (acosh);
+ START (acosh, 0);
RUN_TEST_LOOP_f_f (acosh, acosh_test_data, );
END;
}
@@ -1731,7 +1752,7 @@ static const struct test_f_f_data asin_test_data[] =
static void
asin_test (void)
{
- START (asin);
+ START (asin, 0);
RUN_TEST_LOOP_f_f (asin, asin_test_data, );
END;
}
@@ -1745,7 +1766,7 @@ static const struct test_f_f_data asin_tonearest_test_data[] =
static void
asin_test_tonearest (void)
{
- START (asin_tonearest);
+ START (asin_tonearest, 0);
RUN_TEST_LOOP_f_f (asin, asin_tonearest_test_data, FE_TONEAREST);
END;
}
@@ -1759,7 +1780,7 @@ static const struct test_f_f_data asin_towardzero_test_data[] =
static void
asin_test_towardzero (void)
{
- START (asin_towardzero);
+ START (asin_towardzero, 0);
RUN_TEST_LOOP_f_f (asin, asin_towardzero_test_data, FE_TOWARDZERO);
END;
}
@@ -1773,7 +1794,7 @@ static const struct test_f_f_data asin_downward_test_data[] =
static void
asin_test_downward (void)
{
- START (asin_downward);
+ START (asin_downward, 0);
RUN_TEST_LOOP_f_f (asin, asin_downward_test_data, FE_DOWNWARD);
END;
}
@@ -1787,7 +1808,7 @@ static const struct test_f_f_data asin_upward_test_data[] =
static void
asin_test_upward (void)
{
- START (asin_upward);
+ START (asin_upward, 0);
RUN_TEST_LOOP_f_f (asin, asin_upward_test_data, FE_UPWARD);
END;
}
@@ -1803,7 +1824,7 @@ static const struct test_f_f_data asinh_test_data[] =
static void
asinh_test (void)
{
- START (asinh);
+ START (asinh, 0);
RUN_TEST_LOOP_f_f (asinh, asinh_test_data, );
END;
}
@@ -1820,7 +1841,7 @@ static const struct test_f_f_data atan_test_data[] =
static void
atan_test (void)
{
- START (atan);
+ START (atan, 0);
RUN_TEST_LOOP_f_f (atan, atan_test_data, );
END;
}
@@ -1847,7 +1868,7 @@ static const struct test_f_f_data atanh_test_data[] =
static void
atanh_test (void)
{
- START (atanh);
+ START (atanh, 0);
RUN_TEST_LOOP_f_f (atanh, atanh_test_data, );
END;
}
@@ -1884,7 +1905,7 @@ static const struct test_ff_f_data atan2_test_data[] =
static void
atan2_test (void)
{
- START (atan2);
+ START (atan2, 0);
RUN_TEST_LOOP_ff_f (atan2, atan2_test_data, );
END;
}
@@ -1909,7 +1930,7 @@ static const struct test_c_f_data cabs_test_data[] =
static void
cabs_test (void)
{
- START (cabs);
+ START (cabs, 0);
RUN_TEST_LOOP_c_f (cabs, cabs_test_data, );
END;
}
@@ -2600,7 +2621,7 @@ static const struct test_c_c_data cacos_test_data[] =
static void
cacos_test (void)
{
- START (cacos);
+ START (cacos, 0);
RUN_TEST_LOOP_c_c (cacos, cacos_test_data, );
END_COMPLEX;
}
@@ -3284,7 +3305,7 @@ static const struct test_c_c_data cacosh_test_data[] =
static void
cacosh_test (void)
{
- START (cacosh);
+ START (cacosh, 0);
RUN_TEST_LOOP_c_c (cacosh, cacosh_test_data, );
END_COMPLEX;
}
@@ -3328,7 +3349,7 @@ static const struct test_c_f_data carg_test_data[] =
static void
carg_test (void)
{
- START (carg);
+ START (carg, 0);
RUN_TEST_LOOP_c_f (carg, carg_test_data, );
END;
}
@@ -4024,7 +4045,7 @@ static const struct test_c_c_data casin_test_data[] =
static void
casin_test (void)
{
- START (casin);
+ START (casin, 0);
RUN_TEST_LOOP_c_c (casin, casin_test_data, );
END_COMPLEX;
}
@@ -4721,7 +4742,7 @@ static const struct test_c_c_data casinh_test_data[] =
static void
casinh_test (void)
{
- START (casinh);
+ START (casinh, 0);
RUN_TEST_LOOP_c_c (casinh, casinh_test_data, );
END_COMPLEX;
}
@@ -5230,7 +5251,7 @@ static const struct test_c_c_data catan_test_data[] =
static void
catan_test (void)
{
- START (catan);
+ START (catan, 0);
RUN_TEST_LOOP_c_c (catan, catan_test_data, );
END_COMPLEX;
}
@@ -5737,7 +5758,7 @@ static const struct test_c_c_data catanh_test_data[] =
static void
catanh_test (void)
{
- START (catanh);
+ START (catanh, 0);
RUN_TEST_LOOP_c_c (catanh, catanh_test_data, );
END_COMPLEX;
}
@@ -5754,7 +5775,7 @@ static const struct test_f_f_data cbrt_test_data[] =
static void
cbrt_test (void)
{
- START (cbrt);
+ START (cbrt, 0);
RUN_TEST_LOOP_f_f (cbrt, cbrt_test_data, );
END;
}
@@ -5813,7 +5834,7 @@ static const struct test_c_c_data ccos_test_data[] =
static void
ccos_test (void)
{
- START (ccos);
+ START (ccos, 0);
RUN_TEST_LOOP_c_c (ccos, ccos_test_data, );
END_COMPLEX;
}
@@ -5872,7 +5893,7 @@ static const struct test_c_c_data ccosh_test_data[] =
static void
ccosh_test (void)
{
- START (ccosh);
+ START (ccosh, 0);
RUN_TEST_LOOP_c_c (ccosh, ccosh_test_data, );
END_COMPLEX;
}
@@ -5976,7 +5997,7 @@ static const struct test_f_f_data ceil_test_data[] =
static void
ceil_test (void)
{
- START (ceil);
+ START (ceil, 1);
RUN_TEST_LOOP_f_f (ceil, ceil_test_data, );
END;
}
@@ -6032,7 +6053,7 @@ static const struct test_c_c_data cexp_test_data[] =
static void
cexp_test (void)
{
- START (cexp);
+ START (cexp, 0);
RUN_TEST_LOOP_c_c (cexp, cexp_test_data, );
END_COMPLEX;
}
@@ -6052,7 +6073,7 @@ static const struct test_c_f_data cimag_test_data[] =
static void
cimag_test (void)
{
- START (cimag);
+ START (cimag, 1);
RUN_TEST_LOOP_c_f (cimag, cimag_test_data, );
END;
}
@@ -6114,7 +6135,7 @@ static const struct test_c_c_data clog_test_data[] =
static void
clog_test (void)
{
- START (clog);
+ START (clog, 0);
RUN_TEST_LOOP_c_c (clog, clog_test_data, );
END_COMPLEX;
}
@@ -6176,7 +6197,7 @@ static const struct test_c_c_data clog10_test_data[] =
static void
clog10_test (void)
{
- START (clog10);
+ START (clog10, 0);
RUN_TEST_LOOP_c_c (clog10, clog10_test_data, );
END_COMPLEX;
}
@@ -6196,7 +6217,7 @@ static const struct test_c_c_data conj_test_data[] =
static void
conj_test (void)
{
- START (conj);
+ START (conj, 1);
RUN_TEST_LOOP_c_c (conj, conj_test_data, );
END_COMPLEX;
}
@@ -6248,7 +6269,7 @@ static const struct test_ff_f_data copysign_test_data[] =
static void
copysign_test (void)
{
- START (copysign);
+ START (copysign, 1);
RUN_TEST_LOOP_ff_f (copysign, copysign_test_data, );
END;
}
@@ -6266,7 +6287,7 @@ static const struct test_f_f_data cos_test_data[] =
static void
cos_test (void)
{
- START (cos);
+ START (cos, 0);
RUN_TEST_LOOP_f_f (cos, cos_test_data, );
END;
}
@@ -6280,7 +6301,7 @@ static const struct test_f_f_data cos_tonearest_test_data[] =
static void
cos_test_tonearest (void)
{
- START (cos_tonearest);
+ START (cos_tonearest, 0);
RUN_TEST_LOOP_f_f (cos, cos_tonearest_test_data, FE_TONEAREST);
END;
}
@@ -6294,7 +6315,7 @@ static const struct test_f_f_data cos_towardzero_test_data[] =
static void
cos_test_towardzero (void)
{
- START (cos_towardzero);
+ START (cos_towardzero, 0);
RUN_TEST_LOOP_f_f (cos, cos_towardzero_test_data, FE_TOWARDZERO);
END;
}
@@ -6308,7 +6329,7 @@ static const struct test_f_f_data cos_downward_test_data[] =
static void
cos_test_downward (void)
{
- START (cos_downward);
+ START (cos_downward, 0);
RUN_TEST_LOOP_f_f (cos, cos_downward_test_data, FE_DOWNWARD);
END;
}
@@ -6322,7 +6343,7 @@ static const struct test_f_f_data cos_upward_test_data[] =
static void
cos_test_upward (void)
{
- START (cos_upward);
+ START (cos_upward, 0);
RUN_TEST_LOOP_f_f (cos, cos_upward_test_data, FE_UPWARD);
END;
}
@@ -6340,7 +6361,7 @@ static const struct test_f_f_data cosh_test_data[] =
static void
cosh_test (void)
{
- START (cosh);
+ START (cosh, 0);
RUN_TEST_LOOP_f_f (cosh, cosh_test_data, );
END;
}
@@ -6354,7 +6375,7 @@ static const struct test_f_f_data cosh_tonearest_test_data[] =
static void
cosh_test_tonearest (void)
{
- START (cosh_tonearest);
+ START (cosh_tonearest, 0);
RUN_TEST_LOOP_f_f (cosh, cosh_tonearest_test_data, FE_TONEAREST);
END;
}
@@ -6368,7 +6389,7 @@ static const struct test_f_f_data cosh_towardzero_test_data[] =
static void
cosh_test_towardzero (void)
{
- START (cosh_towardzero);
+ START (cosh_towardzero, 0);
RUN_TEST_LOOP_f_f (cosh, cosh_towardzero_test_data, FE_TOWARDZERO);
END;
}
@@ -6382,7 +6403,7 @@ static const struct test_f_f_data cosh_downward_test_data[] =
static void
cosh_test_downward (void)
{
- START (cosh_downward);
+ START (cosh_downward, 0);
RUN_TEST_LOOP_f_f (cosh, cosh_downward_test_data, FE_DOWNWARD);
END;
}
@@ -6396,7 +6417,7 @@ static const struct test_f_f_data cosh_upward_test_data[] =
static void
cosh_test_upward (void)
{
- START (cosh_upward);
+ START (cosh_upward, 0);
RUN_TEST_LOOP_f_f (cosh, cosh_upward_test_data, FE_UPWARD);
END;
}
@@ -6412,7 +6433,7 @@ static const struct test_cc_c_data cpow_test_data[] =
static void
cpow_test (void)
{
- START (cpow);
+ START (cpow, 0);
RUN_TEST_LOOP_cc_c (cpow, cpow_test_data, );
END_COMPLEX;
}
@@ -6479,7 +6500,7 @@ static const struct test_c_c_data cproj_test_data[] =
static void
cproj_test (void)
{
- START (cproj);
+ START (cproj, 1);
RUN_TEST_LOOP_c_c (cproj, cproj_test_data, );
END_COMPLEX;
}
@@ -6499,7 +6520,7 @@ static const struct test_c_f_data creal_test_data[] =
static void
creal_test (void)
{
- START (creal);
+ START (creal, 1);
RUN_TEST_LOOP_c_f (creal, creal_test_data, );
END;
}
@@ -6597,7 +6618,7 @@ static const struct test_c_c_data csin_test_data[] =
static void
csin_test (void)
{
- START (csin);
+ START (csin, 0);
RUN_TEST_LOOP_c_c (csin, csin_test_data, );
END_COMPLEX;
}
@@ -6696,7 +6717,7 @@ static const struct test_c_c_data csinh_test_data[] =
static void
csinh_test (void)
{
- START (csinh);
+ START (csinh, 0);
RUN_TEST_LOOP_c_c (csinh, csinh_test_data, );
END_COMPLEX;
}
@@ -6749,7 +6770,7 @@ static const struct test_c_c_data csqrt_test_data[] =
static void
csqrt_test (void)
{
- START (csqrt);
+ START (csqrt, 0);
RUN_TEST_LOOP_c_c (csqrt, csqrt_test_data, );
END_COMPLEX;
}
@@ -6797,7 +6818,7 @@ static const struct test_c_c_data ctan_test_data[] =
static void
ctan_test (void)
{
- START (ctan);
+ START (ctan, 0);
RUN_TEST_LOOP_c_c (ctan, ctan_test_data, );
END_COMPLEX;
}
@@ -6811,7 +6832,7 @@ static const struct test_c_c_data ctan_tonearest_test_data[] =
static void
ctan_test_tonearest (void)
{
- START (ctan_tonearest);
+ START (ctan_tonearest, 0);
RUN_TEST_LOOP_c_c (ctan, ctan_tonearest_test_data, FE_TONEAREST);
END_COMPLEX;
}
@@ -6825,7 +6846,7 @@ static const struct test_c_c_data ctan_towardzero_test_data[] =
static void
ctan_test_towardzero (void)
{
- START (ctan_towardzero);
+ START (ctan_towardzero, 0);
RUN_TEST_LOOP_c_c (ctan, ctan_towardzero_test_data, FE_TOWARDZERO);
END_COMPLEX;
}
@@ -6839,7 +6860,7 @@ static const struct test_c_c_data ctan_downward_test_data[] =
static void
ctan_test_downward (void)
{
- START (ctan_downward);
+ START (ctan_downward, 0);
RUN_TEST_LOOP_c_c (ctan, ctan_downward_test_data, FE_DOWNWARD);
END_COMPLEX;
}
@@ -6853,7 +6874,7 @@ static const struct test_c_c_data ctan_upward_test_data[] =
static void
ctan_test_upward (void)
{
- START (ctan_upward);
+ START (ctan_upward, 0);
RUN_TEST_LOOP_c_c (ctan, ctan_upward_test_data, FE_UPWARD);
END_COMPLEX;
}
@@ -6901,7 +6922,7 @@ static const struct test_c_c_data ctanh_test_data[] =
static void
ctanh_test (void)
{
- START (ctanh);
+ START (ctanh, 0);
RUN_TEST_LOOP_c_c (ctanh, ctanh_test_data, );
END_COMPLEX;
}
@@ -6915,7 +6936,7 @@ static const struct test_c_c_data ctanh_tonearest_test_data[] =
static void
ctanh_test_tonearest (void)
{
- START (ctanh_tonearest);
+ START (ctanh_tonearest, 0);
RUN_TEST_LOOP_c_c (ctanh, ctanh_tonearest_test_data, FE_TONEAREST);
END_COMPLEX;
}
@@ -6929,7 +6950,7 @@ static const struct test_c_c_data ctanh_towardzero_test_data[] =
static void
ctanh_test_towardzero (void)
{
- START (ctanh_towardzero);
+ START (ctanh_towardzero, 0);
RUN_TEST_LOOP_c_c (ctanh, ctanh_towardzero_test_data, FE_TOWARDZERO);
END_COMPLEX;
}
@@ -6943,7 +6964,7 @@ static const struct test_c_c_data ctanh_downward_test_data[] =
static void
ctanh_test_downward (void)
{
- START (ctanh_downward);
+ START (ctanh_downward, 0);
RUN_TEST_LOOP_c_c (ctanh, ctanh_downward_test_data, FE_DOWNWARD);
END_COMPLEX;
}
@@ -6957,7 +6978,7 @@ static const struct test_c_c_data ctanh_upward_test_data[] =
static void
ctanh_test_upward (void)
{
- START (ctanh_upward);
+ START (ctanh_upward, 0);
RUN_TEST_LOOP_c_c (ctanh, ctanh_upward_test_data, FE_UPWARD);
END_COMPLEX;
}
@@ -6975,7 +6996,7 @@ static const struct test_f_f_data erf_test_data[] =
static void
erf_test (void)
{
- START (erf);
+ START (erf, 0);
RUN_TEST_LOOP_f_f (erf, erf_test_data, );
END;
}
@@ -6993,7 +7014,7 @@ static const struct test_f_f_data erfc_test_data[] =
static void
erfc_test (void)
{
- START (erfc);
+ START (erfc, 0);
RUN_TEST_LOOP_f_f (erfc, erfc_test_data, );
END;
}
@@ -7011,7 +7032,7 @@ static const struct test_f_f_data exp_test_data[] =
static void
exp_test (void)
{
- START (exp);
+ START (exp, 0);
RUN_TEST_LOOP_f_f (exp, exp_test_data, );
END;
}
@@ -7025,7 +7046,7 @@ static const struct test_f_f_data exp_tonearest_test_data[] =
static void
exp_test_tonearest (void)
{
- START (exp_tonearest);
+ START (exp_tonearest, 0);
RUN_TEST_LOOP_f_f (exp, exp_tonearest_test_data, FE_TONEAREST);
END;
}
@@ -7039,7 +7060,7 @@ static const struct test_f_f_data exp_towardzero_test_data[] =
static void
exp_test_towardzero (void)
{
- START (exp_towardzero);
+ START (exp_towardzero, 0);
RUN_TEST_LOOP_f_f (exp, exp_towardzero_test_data, FE_TOWARDZERO);
END;
}
@@ -7053,7 +7074,7 @@ static const struct test_f_f_data exp_downward_test_data[] =
static void
exp_test_downward (void)
{
- START (exp_downward);
+ START (exp_downward, 0);
RUN_TEST_LOOP_f_f (exp, exp_downward_test_data, FE_DOWNWARD);
END;
}
@@ -7067,7 +7088,7 @@ static const struct test_f_f_data exp_upward_test_data[] =
static void
exp_test_upward (void)
{
- START (exp_upward);
+ START (exp_upward, 0);
RUN_TEST_LOOP_f_f (exp, exp_upward_test_data, FE_UPWARD);
END;
}
@@ -7085,7 +7106,7 @@ static const struct test_f_f_data exp10_test_data[] =
static void
exp10_test (void)
{
- START (exp10);
+ START (exp10, 0);
RUN_TEST_LOOP_f_f (exp10, exp10_test_data, );
END;
}
@@ -7099,7 +7120,7 @@ static const struct test_f_f_data exp10_tonearest_test_data[] =
static void
exp10_test_tonearest (void)
{
- START (exp10_tonearest);
+ START (exp10_tonearest, 0);
RUN_TEST_LOOP_f_f (exp10, exp10_tonearest_test_data, FE_TONEAREST);
END;
}
@@ -7113,7 +7134,7 @@ static const struct test_f_f_data exp10_towardzero_test_data[] =
static void
exp10_test_towardzero (void)
{
- START (exp10_towardzero);
+ START (exp10_towardzero, 0);
RUN_TEST_LOOP_f_f (exp10, exp10_towardzero_test_data, FE_TOWARDZERO);
END;
}
@@ -7127,7 +7148,7 @@ static const struct test_f_f_data exp10_downward_test_data[] =
static void
exp10_test_downward (void)
{
- START (exp10_downward);
+ START (exp10_downward, 0);
RUN_TEST_LOOP_f_f (exp10, exp10_downward_test_data, FE_DOWNWARD);
END;
}
@@ -7141,7 +7162,7 @@ static const struct test_f_f_data exp10_upward_test_data[] =
static void
exp10_test_upward (void)
{
- START (exp10_upward);
+ START (exp10_upward, 0);
RUN_TEST_LOOP_f_f (exp10, exp10_upward_test_data, FE_UPWARD);
END;
}
@@ -7149,7 +7170,7 @@ exp10_test_upward (void)
static void
pow10_test (void)
{
- START (pow10);
+ START (pow10, 0);
/* pow10 uses the same test data as exp10. */
RUN_TEST_LOOP_f_f (pow10, exp10_test_data, );
END;
@@ -7168,7 +7189,7 @@ static const struct test_f_f_data exp2_test_data[] =
static void
exp2_test (void)
{
- START (exp2);
+ START (exp2, 0);
RUN_TEST_LOOP_f_f (exp2, exp2_test_data, );
END;
}
@@ -7186,7 +7207,7 @@ static const struct test_f_f_data expm1_test_data[] =
static void
expm1_test (void)
{
- START (expm1);
+ START (expm1, 0);
RUN_TEST_LOOP_f_f (expm1, expm1_test_data, );
END;
}
@@ -7200,7 +7221,7 @@ static const struct test_f_f_data expm1_tonearest_test_data[] =
static void
expm1_test_tonearest (void)
{
- START (expm1_tonearest);
+ START (expm1_tonearest, 0);
RUN_TEST_LOOP_f_f (expm1, expm1_tonearest_test_data, FE_TONEAREST);
END;
}
@@ -7214,7 +7235,7 @@ static const struct test_f_f_data expm1_towardzero_test_data[] =
static void
expm1_test_towardzero (void)
{
- START (expm1_towardzero);
+ START (expm1_towardzero, 0);
RUN_TEST_LOOP_f_f (expm1, expm1_towardzero_test_data, FE_TOWARDZERO);
END;
}
@@ -7228,7 +7249,7 @@ static const struct test_f_f_data expm1_downward_test_data[] =
static void
expm1_test_downward (void)
{
- START (expm1_downward);
+ START (expm1_downward, 0);
RUN_TEST_LOOP_f_f (expm1, expm1_downward_test_data, FE_DOWNWARD);
END;
}
@@ -7242,7 +7263,7 @@ static const struct test_f_f_data expm1_upward_test_data[] =
static void
expm1_test_upward (void)
{
- START (expm1_upward);
+ START (expm1_upward, 0);
RUN_TEST_LOOP_f_f (expm1, expm1_upward_test_data, FE_UPWARD);
END;
}
@@ -7265,7 +7286,7 @@ static const struct test_f_f_data fabs_test_data[] =
static void
fabs_test (void)
{
- START (fabs);
+ START (fabs, 1);
RUN_TEST_LOOP_f_f (fabs, fabs_test_data, );
END;
}
@@ -7309,7 +7330,7 @@ static const struct test_ff_f_data fdim_test_data[] =
static void
fdim_test (void)
{
- START (fdim);
+ START (fdim, 1);
RUN_TEST_LOOP_ff_f (fdim, fdim_test_data, );
END;
}
@@ -7414,7 +7435,7 @@ static const struct test_f_f_data floor_test_data[] =
static void
floor_test (void)
{
- START (floor);
+ START (floor, 1);
RUN_TEST_LOOP_f_f (floor, floor_test_data, );
END;
}
@@ -7458,7 +7479,7 @@ static const struct test_fff_f_data fma_test_data[] =
static void
fma_test (void)
{
- START (fma);
+ START (fma, 1);
RUN_TEST_LOOP_fff_f (fma, fma_test_data, );
END;
}
@@ -7472,7 +7493,7 @@ static const struct test_fff_f_data fma_towardzero_test_data[] =
static void
fma_test_towardzero (void)
{
- START (fma_towardzero);
+ START (fma_towardzero, 1);
RUN_TEST_LOOP_fff_f (fma, fma_towardzero_test_data, FE_TOWARDZERO);
END;
}
@@ -7486,7 +7507,7 @@ static const struct test_fff_f_data fma_downward_test_data[] =
static void
fma_test_downward (void)
{
- START (fma_downwar