[Piglit] [PATCH] cl/math: Add some basic ilogb builtin tests
Aaron Watry
awatry at gmail.com
Thu Feb 11 02:57:14 UTC 2016
Note: Doesn't test 0 or NaN as those inputs support multiple possible output values.
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',
--
2.5.0
More information about the Piglit
mailing list