tests/fp: Explicitly set 3-NaN propagation rule

Explicitly set a rule in the softfloat tests for propagating NaNs in
the muladd case.  In meson.build we put -DTARGET_ARM in fpcflags, and
so we should select here the Arm rule of float_3nan_prop_s_cab.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20241202131347.498124-17-peter.maydell@linaro.org
This commit is contained in:
Peter Maydell 2024-12-11 15:30:57 +00:00
parent 7a944c30f7
commit 43e5112808
2 changed files with 2 additions and 0 deletions

View File

@ -493,6 +493,7 @@ static void run_bench(void)
* doesn't specify match those used by the Arm architecture. * doesn't specify match those used by the Arm architecture.
*/ */
set_float_2nan_prop_rule(float_2nan_prop_s_ab, &soft_status); set_float_2nan_prop_rule(float_2nan_prop_s_ab, &soft_status);
set_float_3nan_prop_rule(float_3nan_prop_s_cab, &soft_status);
set_float_infzeronan_rule(float_infzeronan_dnan_if_qnan, &soft_status); set_float_infzeronan_rule(float_infzeronan_dnan_if_qnan, &soft_status);
f = bench_funcs[operation][precision]; f = bench_funcs[operation][precision];

View File

@ -940,6 +940,7 @@ void run_test(void)
* doesn't specify match those used by the Arm architecture. * doesn't specify match those used by the Arm architecture.
*/ */
set_float_2nan_prop_rule(float_2nan_prop_s_ab, &qsf); set_float_2nan_prop_rule(float_2nan_prop_s_ab, &qsf);
set_float_3nan_prop_rule(float_3nan_prop_s_cab, &qsf);
set_float_infzeronan_rule(float_infzeronan_dnan_if_qnan, &qsf); set_float_infzeronan_rule(float_infzeronan_dnan_if_qnan, &qsf);
genCases_setLevel(test_level); genCases_setLevel(test_level);