[Piglit] [PATCH 3/3] cl: Add acos tests

Jan Vesely jan.vesely at rutgers.edu
Tue Sep 2 14:47:32 PDT 2014


On Fri, 2014-08-29 at 17:37 -0500, Aaron Watry wrote:
> Signed-off-by: Aaron Watry <awatry at gmail.com>

Reviewed-by: Jan Vesely <jan.vesely at rutgers.edu>

> ---
>  generated_tests/generate-cl-math-builtins.py | 12 +++++++++++-
>  1 file changed, 11 insertions(+), 1 deletion(-)
> 
> diff --git a/generated_tests/generate-cl-math-builtins.py b/generated_tests/generate-cl-math-builtins.py
> index 11882d4..a20f921 100644
> --- a/generated_tests/generate-cl-math-builtins.py
> +++ b/generated_tests/generate-cl-math-builtins.py
> @@ -25,9 +25,10 @@
>  import os
>  
>  from genclbuiltins import gen
> -from math import atan, pi, sin, sqrt, cos
> +from math import acos, atan, pi, sin, sqrt, cos
>  
>  CLC_VERSION_MIN = {
> +    'acos' : 10,
>      'atan' : 10,
>      'ceil' : 10,
>      'cos' : 10,
> @@ -48,6 +49,15 @@ F = {
>  }
>  
>  tests = {
> +    'acos' : {
> +        'arg_types' : [F, F],
> +        'function_type': 'ttt',
> +        'values' : [
> +            [ pi,  pi/2, 0.0, acos(0.12345), float("nan")], # Result
> +            [-1.0, 0.0,  1.0,      0.12345,  float("nan")]  # Arg0
> +        ],
> +        'tolerance' : 4
> +     },
>      'atan' : {
>          'arg_types' : [F, F],
>          'function_type': 'ttt',

-- 
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20140902/8c256672/attachment.sig>


More information about the Piglit mailing list