[Piglit] [PATCH] cl: Add frexp generated tests
Jan Vesely
jan.vesely at rutgers.edu
Fri Feb 5 18:59:34 UTC 2016
On Thu, 2016-02-04 at 22:00 -0600, Aaron Watry wrote:
> Tested on MacOS Intel CPU CL and GeForce 9400M.
>
> Signed-off-by: Aaron Watry <awatry at gmail.com>
Reviewed-by: Jan Vesely <jan.vesely at rutgers.edu>
passes on AMD Turks and Kaveri with your libclc patch
> ---
> This applies on top of Tom/Jan's 2-patch series to add fract
> generated tests and 2-output builtins
>
> generated_tests/gen_cl_math_builtins.py | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/generated_tests/gen_cl_math_builtins.py
> b/generated_tests/gen_cl_math_builtins.py
> index b6bae2a..c00321c 100644
> --- a/generated_tests/gen_cl_math_builtins.py
> +++ b/generated_tests/gen_cl_math_builtins.py
> @@ -57,6 +57,7 @@ CLC_VERSION_MIN = {
> 'fmin' : 10,
> 'fmod' : 10,
> 'fract' : 10,
> + 'frexp' : 10,
> 'ldexp' : 10,
> 'log10' : 10,
> 'log1p' : 10,
> @@ -319,6 +320,17 @@ tests = {
> ],
> 'num_out_args' : 2
> },
> + 'frexp' : {
> + 'arg_types': [F, I, F],
> + 'function_type': 'ttt',
> + # For frexp we have two outputs per address space.
> + 'values': [
> + [0.602783203125, 0.5, float("nan"),
> float("nan"), float("inf"), float("-inf"), 0.0],
> + [11, 1, 0, 0, 0,
> 0, 0],
> + [1234.5, 1.0, float("nan"), float("-nan"),
> float("inf"), float("-inf"), 0.0]
> + ],
> + 'num_out_args' : 2
> + },
> 'ldexp' : {
> 'arg_types': [F, F, I],
> 'function_type': 'tss',
--
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/20160205/cdb55812/attachment.sig>
More information about the Piglit
mailing list