On Wed, Jun 11, 2014 at 02:14:12PM -0500, Aaron Watry wrote:
Reviewed-by: Tom Stellard <[email protected]>
> Signed-off-by: Aaron Watry <[email protected]>
> ---
>  generated_tests/generate-cl-relational-builtins.py | 15 +++++++++++++--
>  1 file changed, 13 insertions(+), 2 deletions(-)
> 
> diff --git a/generated_tests/generate-cl-relational-builtins.py 
> b/generated_tests/generate-cl-relational-builtins.py
> index af6849f..cf2540a 100644
> --- a/generated_tests/generate-cl-relational-builtins.py
> +++ b/generated_tests/generate-cl-relational-builtins.py
> @@ -22,14 +22,16 @@
>  # SOFTWARE.
>  #
>  # Authors: Tom Stellard <[email protected]>
> +#          Aaron Watry  <[email protected]>
>  #
>  
>  import os
>  
> -from genclbuiltins import gen
> +from genclbuiltins import gen, TRUE
>  
>  CLC_VERSION_MIN = {
> -    'isnan' : 10
> +    'isnan' : 10,
> +    'isgreater' : 10
>  }
>  
>  DATA_TYPES = ['float']
> @@ -50,6 +52,15 @@ tests = {
>              [0,   1,            0,   0],            # Result
>              [0.0, float("nan"), 1.0, float("inf") ] # Arg0
>          ]
> +    },
> +    'isgreater' : {
> +        'arg_types': [I, F, F],
> +        'function_type': 'ttt',
> +        'values': [
> +            [0,   0,            0,   0,            0,            0,          
>   TRUE, 0],    # Result
> +            [0.0, float("nan"), 1.0, 1,            float("nan"), 
> float("inf"), 1.0,  0.5 ], # Arg0
> +            [0.0, float("nan"), 1.0, float("nan"), 1,            
> float("inf"), 0.5,  1.0 ]  # Arg1
> +        ]
>      }
>  }
>  
> -- 
> 1.9.1
> 
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to