[Piglit] [PATCH] cl: Add sqrt tests

Dylan Baker baker.dylan.c at gmail.com
Mon Oct 28 00:39:32 CET 2013


On Friday, October 25, 2013 05:40:47 PM Aaron Watry wrote:
> Pretty basic, but we didn't have any tests for this before...
> 
> Tested on r600g w/ CEDAR.
> ---
>  generated_tests/generate-cl-math-builtins.py | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/generated_tests/generate-cl-math-builtins.py
> b/generated_tests/generate-cl-math-builtins.py index b6b4e43..150c412
> 100644
> --- a/generated_tests/generate-cl-math-builtins.py
> +++ b/generated_tests/generate-cl-math-builtins.py
> @@ -57,6 +57,14 @@ tests = {
>              [1.0, -1.0, 0.0, -0.0, 0.0],
>              [0.5, -0.5, 0.0, -0.0, float("nan")]
>          ]
> +    },
> +    'sqrt' : {
> +        'arg_types': [F, F],
> +        'function_type': 'ttt',
> +        'values': [
> +            [1.0, 2.0,  6.0, 2.5 , float("nan"), 4.0], # Result
> +            [1.0, 4.0, 36.0, 6.25, float("nan"), 16.0], # Arg1

very minor nit, but two spaces before the # in inline comments please

> +        ]
>      }
>  }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20131027/85fa7e8c/attachment.pgp>


More information about the Piglit mailing list