Added corrections to re-enable reciprocal test in math_brute_force suite for relaxed math mode (#2221)

fixes #2145

As suggested by @svenvh reciprocal has different precision requirements
than divide. This PR introduces special path for reciprocal for
binar_float_operator to test reciprocal with relaxed math. If this PR
will get approvals, invalidate PR #2162
This commit is contained in:
Marcin Hajder
2025-02-04 17:45:20 +01:00
committed by GitHub
parent cc9e61652f
commit bcfa1f7c26
6 changed files with 146 additions and 51 deletions

View File

@@ -154,7 +154,7 @@ static int doTest(const char *name)
exit(EXIT_FAILURE);
}
if (func_data->func.p == NULL)
if (func_data->func.p == NULL && func_data->rfunc.p == NULL)
{
vlog("'%s' is missing implementation, skipping function.\n",
func_data->name);
@@ -308,9 +308,10 @@ static test_definition test_list[] = {
ADD_TEST(half_log), ADD_TEST(half_log2), ADD_TEST(half_log10),
ADD_TEST(half_powr), ADD_TEST(half_recip), ADD_TEST(half_rsqrt),
ADD_TEST(half_sin), ADD_TEST(half_sqrt), ADD_TEST(half_tan),
ADD_TEST(add), ADD_TEST(subtract), ADD_TEST(divide),
ADD_TEST(divide_cr), ADD_TEST(multiply), ADD_TEST(assignment),
ADD_TEST(not ), ADD_TEST(erf), ADD_TEST(erfc),
ADD_TEST(add), ADD_TEST(subtract), ADD_TEST(reciprocal),
ADD_TEST(divide), ADD_TEST(divide_cr), ADD_TEST(multiply),
ADD_TEST(assignment), ADD_TEST(not ), ADD_TEST(erf),
ADD_TEST(erfc),
};
#undef ADD_TEST