[Piglit] [PATCH 2/9] cl/relational: Add islessequal tests

Aaron Watry awatry at gmail.com
Fri Jul 11 21:33:47 PDT 2014


Signed-off-by: Aaron Watry <awatry at gmail.com>
---
 generated_tests/generate-cl-relational-builtins.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/generated_tests/generate-cl-relational-builtins.py b/generated_tests/generate-cl-relational-builtins.py
index bc98aaa..e4e8f0c 100644
--- a/generated_tests/generate-cl-relational-builtins.py
+++ b/generated_tests/generate-cl-relational-builtins.py
@@ -33,6 +33,7 @@ CLC_VERSION_MIN = {
     'isgreater' : 10,
     'isgreaterequal' : 10,
     'isless' : 10,
+    'islessequal' : 10,
     'isnotequal' : 10,
     'signbit' : 10
 }
@@ -92,6 +93,15 @@ tests = {
             [0.0, float("nan"), 1.0, float("nan"), 1.0,          1.0,          0.5,  1.0 ]  # Arg1
         ]
     },
+    'islessequal' : {
+        'arg_types': [I, F, F],
+        'function_type': 'ttt',
+        'values': [
+            [TRUE, 0,           TRUE, 0,            0,            0,              0,  TRUE], # Result
+            [0.0,  float("nan"), 1.0, 1.0,          float("nan"), float("inf"), 1.0,  0.5 ], # Arg0
+            [0.0,  float("nan"), 1.0, float("nan"), 1.0,          1.0,          0.5,  1.0 ]  # Arg1
+        ]
+    },
     'isnotequal' : {
         'arg_types': [I, F, F],
         'function_type': 'ttt',
-- 
1.9.1



More information about the Piglit mailing list