[Piglit] [PATCH 4/9] cl/relational: Add isfinite tests
Aaron Watry
awatry at gmail.com
Fri Jul 11 21:33:49 PDT 2014
Signed-off-by: Aaron Watry <awatry at gmail.com>
---
generated_tests/generate-cl-relational-builtins.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/generated_tests/generate-cl-relational-builtins.py b/generated_tests/generate-cl-relational-builtins.py
index 1c3a88e..de1db76 100644
--- a/generated_tests/generate-cl-relational-builtins.py
+++ b/generated_tests/generate-cl-relational-builtins.py
@@ -30,6 +30,7 @@ from genclbuiltins import gen, TRUE, NEGNAN
CLC_VERSION_MIN = {
'isnan' : 10,
'isequal' : 10,
+ 'isfinite' : 10,
'isgreater' : 10,
'isgreaterequal' : 10,
'isless' : 10,
@@ -67,6 +68,14 @@ tests = {
[0.0, float("nan"), 1.0, float("nan"), 1, float("inf"), 0.5, 123.0 ] # Arg1
]
},
+ 'isfinite' : {
+ 'arg_types': [I, F],
+ 'function_type': 'ttt',
+ 'values': [
+ [TRUE, 0, TRUE, TRUE, 0, 0, TRUE ], # Result
+ [0.0, float("nan"), 1.0, 1.0, float("inf"), float("-inf"), -123.0 ], # Arg0
+ ]
+ },
'isgreater' : {
'arg_types': [I, F, F],
'function_type': 'ttt',
--
1.9.1
More information about the Piglit
mailing list