From 3dab3df48d7dbc22accf6c37c59e54e35a35de7f Mon Sep 17 00:00:00 2001 From: Marco Antognini Date: Fri, 7 May 2021 09:29:28 +0100 Subject: [PATCH] Report inputs for worst errors (#1231) Builtin functions producing two results can have their worst error, for each result, on different inputs. Report both inputs. Signed-off-by: Marco Antognini --- .../math_brute_force/binary_two_results_i_double.cpp | 3 ++- .../math_brute_force/binary_two_results_i_float.cpp | 3 ++- .../math_brute_force/unary_two_results_i_double.cpp | 3 ++- .../math_brute_force/unary_two_results_i_float.cpp | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/test_conformance/math_brute_force/binary_two_results_i_double.cpp b/test_conformance/math_brute_force/binary_two_results_i_double.cpp index 50250f9d..14f41092 100644 --- a/test_conformance/math_brute_force/binary_two_results_i_double.cpp +++ b/test_conformance/math_brute_force/binary_two_results_i_double.cpp @@ -562,7 +562,8 @@ int TestFunc_DoubleI_Double_Double(const Func *f, MTdata d, bool relaxedMode) else vlog("passed"); - vlog("\t{%8.2f, %lld} @ %a", maxError, maxError2, maxErrorVal); + vlog("\t{%8.2f, %lld} @ {%a, %a}", maxError, maxError2, maxErrorVal, + maxErrorVal2); } vlog("\n"); diff --git a/test_conformance/math_brute_force/binary_two_results_i_float.cpp b/test_conformance/math_brute_force/binary_two_results_i_float.cpp index dfdd4a2e..5ef44b6e 100644 --- a/test_conformance/math_brute_force/binary_two_results_i_float.cpp +++ b/test_conformance/math_brute_force/binary_two_results_i_float.cpp @@ -547,7 +547,8 @@ int TestFunc_FloatI_Float_Float(const Func *f, MTdata d, bool relaxedMode) else vlog("passed"); - vlog("\t{%8.2f, %lld} @ %a", maxError, maxError2, maxErrorVal); + vlog("\t{%8.2f, %lld} @ {%a, %a}", maxError, maxError2, maxErrorVal, + maxErrorVal2); } vlog("\n"); diff --git a/test_conformance/math_brute_force/unary_two_results_i_double.cpp b/test_conformance/math_brute_force/unary_two_results_i_double.cpp index 251ffb0b..14d1fb99 100644 --- a/test_conformance/math_brute_force/unary_two_results_i_double.cpp +++ b/test_conformance/math_brute_force/unary_two_results_i_double.cpp @@ -400,7 +400,8 @@ int TestFunc_DoubleI_Double(const Func *f, MTdata d, bool relaxedMode) else vlog("passed"); - vlog("\t{%8.2f, %lld} @ %a", maxError, maxError2, maxErrorVal); + vlog("\t{%8.2f, %lld} @ {%a, %a}", maxError, maxError2, maxErrorVal, + maxErrorVal2); } vlog("\n"); diff --git a/test_conformance/math_brute_force/unary_two_results_i_float.cpp b/test_conformance/math_brute_force/unary_two_results_i_float.cpp index 030de58a..23b0d707 100644 --- a/test_conformance/math_brute_force/unary_two_results_i_float.cpp +++ b/test_conformance/math_brute_force/unary_two_results_i_float.cpp @@ -398,7 +398,8 @@ int TestFunc_FloatI_Float(const Func *f, MTdata d, bool relaxedMode) else vlog("passed"); - vlog("\t{%8.2f, %lld} @ %a", maxError, maxError2, maxErrorVal); + vlog("\t{%8.2f, %lld} @ {%a, %a}", maxError, maxError2, maxErrorVal, + maxErrorVal2); } vlog("\n");