[Piglit] [PATCH] cl/math: Add some basic ilogb builtin tests
Jan Vesely
jan.vesely at rutgers.edu
Thu Feb 11 20:49:04 UTC 2016
On Wed, 2016-02-10 at 20:57 -0600, Aaron Watry wrote:
> Note: Doesn't test 0 or NaN as those inputs support multiple possible
> output values.
I guess FP_ILOGB{0,NAN} are available only in CLC.
Reviewed-by: Jan Vesely <jan.vesely at rutgers.edu>
>
> Signed-off-by: Aaron Watry <awatry at gmail.com>
> ---
> generated_tests/gen_cl_math_builtins.py | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/generated_tests/gen_cl_math_builtins.py
> b/generated_tests/gen_cl_math_builtins.py
> index df4e94b..6406495 100644
> --- a/generated_tests/gen_cl_math_builtins.py
> +++ b/generated_tests/gen_cl_math_builtins.py
> @@ -56,6 +56,7 @@ CLC_VERSION_MIN = {
> 'fmax' : 10,
> 'fmin' : 10,
> 'fmod' : 10,
> + 'ilogb' : 10,
> 'ldexp' : 10,
> 'log10' : 10,
> 'log1p' : 10,
> @@ -307,6 +308,15 @@ tests = {
> ],
> 'tolerance' : 0
> },
> + 'ilogb' : {
> + 'arg_types': [I, F],
> + 'function_type': 'ttt',
> + 'values': [
> + [0, 3, 1, 10, 2147483647, 2147483647],
> + [1.0, 10.0, -3.0, 1234.5, float("inf"), float("-inf")]
> + ],
> + 'tolerance' : 0
> + },
> '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: <https://lists.freedesktop.org/archives/piglit/attachments/20160211/77ece505/attachment.sig>
More information about the Piglit
mailing list