[Piglit] [PATCH 5/5] cl: Add signbit(float) relational tests

Aaron Watry awatry at gmail.com
Wed Jun 11 12:14:15 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 f22f5d1..833a836 100644
--- a/generated_tests/generate-cl-relational-builtins.py
+++ b/generated_tests/generate-cl-relational-builtins.py
@@ -34,6 +34,7 @@ CLC_VERSION_MIN = {
     'isgreater' : 10,
     'isgreaterequal' : 10,
     'isnotequal' : 10,
+    'signbit' : 10
 }
 
 DATA_TYPES = ['float']
@@ -81,6 +82,14 @@ tests = {
             [0.0,  float("nan"), 1.0,  1,            float("nan"), float("inf"), 1.0,  0.5 ], # Arg0
             [0.0,  float("nan"), 1.0,  float("nan"), 1,            float("inf"), 0.5,  1.0 ]  # Arg1
         ]
+    },
+    'signbit' : {
+        'arg_types': [I, F],
+        'function_type': 'ttt',
+        'values': [
+            [0,   TRUE,        0,   0, TRUE,          0,            TRUE ], # Result
+            [0.0, float(0)*-1, 1.0, 1, float("-inf"), float("inf"), -1.0 ]  # Arg0
+        ]
     }
 }
 
-- 
1.9.1



More information about the Piglit mailing list