[Piglit] [PATCH 1/3] cl: Add isequal(float) relational tests
Tom Stellard
tom at stellard.net
Thu Jun 12 16:41:34 PDT 2014
On Wed, Jun 11, 2014 at 05:12:29PM -0500, Aaron Watry wrote:
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
> Signed-off-by: Aaron Watry <awatry at gmail.com>
> ---
> generated_tests/generate-cl-relational-builtins.py | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/generated_tests/generate-cl-relational-builtins.py b/generated_tests/generate-cl-relational-builtins.py
> index 833a836..2a55fb7 100644
> --- a/generated_tests/generate-cl-relational-builtins.py
> +++ b/generated_tests/generate-cl-relational-builtins.py
> @@ -31,6 +31,7 @@ from genclbuiltins import gen, TRUE
>
> CLC_VERSION_MIN = {
> 'isnan' : 10,
> + 'isequal' : 10,
> 'isgreater' : 10,
> 'isgreaterequal' : 10,
> 'isnotequal' : 10,
> @@ -56,6 +57,15 @@ tests = {
> [0.0, float("nan"), 1.0, float("inf") ] # Arg0
> ]
> },
> + 'isequal' : {
> + 'arg_types': [I, F, F],
> + 'function_type': 'ttt',
> + 'values': [
> + [TRUE, 0, TRUE, 0, 0, TRUE, 0, TRUE ], # Result
> + [0.0, float("nan"), 1.0, 1, float("nan"), float("inf"), 1.0, 123.0 ], # Arg0
> + [0.0, float("nan"), 1.0, float("nan"), 1, float("inf"), 0.5, 123.0 ] # Arg1
> + ]
> + },
> 'isgreater' : {
> 'arg_types': [I, F, F],
> 'function_type': 'ttt',
> --
> 1.9.1
>
More information about the Piglit
mailing list