Note: Doesn't test 0 or NaN as those inputs support multiple possible output values.
Signed-off-by: Aaron Watry <[email protected]> --- 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', -- 2.5.0 _______________________________________________ Piglit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/piglit
