[Piglit] [PATCH 7/9] cl/relational: Add isnormal tests
Aaron Watry
awatry at gmail.com
Fri Jul 11 21:33:52 PDT 2014
I believe that this is right, but the documentation is pretty sparse.
Tests pass on OSX 10.9 on my GF9400m with Apple's runtime.
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 9d47d72..3991764 100644
--- a/generated_tests/generate-cl-relational-builtins.py
+++ b/generated_tests/generate-cl-relational-builtins.py
@@ -37,6 +37,7 @@ CLC_VERSION_MIN = {
'isless' : 10,
'islessequal' : 10,
'islessgreater' : 10,
+ 'isnormal' : 10,
'isnotequal' : 10,
'signbit' : 10
}
@@ -130,6 +131,14 @@ tests = {
[0.0, float("nan"), 1.0, float("nan"), 1.0, 1.0, 0.5, 1.0 ] # Arg1
]
},
+ 'isnormal' : {
+ 'arg_types': [I, F],
+ 'function_type': 'ttt',
+ 'values': [
+ [0, 0, TRUE, TRUE, 0, 0, TRUE, 0], # Result
+ [0.0, float("nan"), 1.0, 1.0, float("inf"), float("-inf"), -123.0, 1e-126], # Arg0
+ ]
+ },
'isnotequal' : {
'arg_types': [I, F, F],
'function_type': 'ttt',
--
1.9.1
More information about the Piglit
mailing list