[Piglit] [PATCH] cl: Add some tests for fdim
Serge Martin
edb+piglit at sigluy.net
Sun Feb 28 07:35:25 UTC 2016
On Saturday 27 February 2016 22:59:29 Aaron Watry wrote:
> Signed-off-by: Aaron Watry <awatry at gmail.com>
Reviewed-by: Serge Martin <edb+piglit at sigluy.net>
> ---
> generated_tests/gen_cl_math_builtins.py | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/generated_tests/gen_cl_math_builtins.py
> b/generated_tests/gen_cl_math_builtins.py index 35fbce3..29b4e1a 100644
> --- a/generated_tests/gen_cl_math_builtins.py
> +++ b/generated_tests/gen_cl_math_builtins.py
> @@ -52,6 +52,7 @@ CLC_VERSION_MIN = {
> 'erfc' : 10,
> 'exp' : 10,
> 'fabs' : 10,
> + 'fdim' : 10,
> 'floor' : 10,
> 'fmax' : 10,
> 'fmin' : 10,
> @@ -274,6 +275,15 @@ tests = {
> ],
> 'tolerance' : 0
> },
> + 'fdim' : {
> + 'arg_types' : [F, F, F],
> + 'function_type': 'ttt',
> + 'values' : [
> + [0.0, 0.75, 0.0, 0.0, float("inf"), 0.0,
> float("nan"), float("nan"), float("nan"), 2.2469 ], # Result +
> [0.3, 1.0, pi, 0.0, float("inf"), float("inf"), float("nan"), 1.0,
> float("nan"), 1.12345 ], # Arg0 + [1.5, 0.25, pi, -0.0,
> float("-inf"), float("inf"), float("nan"), float("nan"), 1.0,
> -1.12345] # Arg1 + ]
> + },
> 'floor' : {
> 'arg_types': [F, F],
> 'function_type': 'ttt',
More information about the Piglit
mailing list