From: Tom Stellard <thomas.stell...@amd.com>

---

This patch depends on my earlier series which creates a new python
script for gnerating math builtin tests.

 generated_tests/generate-cl-math-builtins.py | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/generated_tests/generate-cl-math-builtins.py 
b/generated_tests/generate-cl-math-builtins.py
index 25143ba..b6b4e43 100644
--- a/generated_tests/generate-cl-math-builtins.py
+++ b/generated_tests/generate-cl-math-builtins.py
@@ -29,7 +29,8 @@ import os
 from genclbuiltins import gen
 
 CLC_VERSION_MIN = {
-    'nextafter' : 10
+    'nextafter' : 10,
+    'sign' : 10
 }
 
 DATA_TYPES = ['float']
@@ -47,6 +48,15 @@ tests = {
             [0.0,           0.0         , 1.0, 1.0, float("nan"), 2.5, 5.0], # 
Arg0
             [1.0,          -1.0         , 2.0, 0.0, 3.4, float("nan"), 5.0], # 
Arg1
         ]
+    },
+    'sign' : { # This is really a Common function but it uses the same types
+               # as a lot of the math functions.
+        'arg_types': [F, F],
+        'function_type': 'ttt',
+        'values': [
+            [1.0, -1.0, 0.0, -0.0, 0.0],
+            [0.5, -0.5, 0.0, -0.0, float("nan")]
+        ]
     }
 }
 
-- 
1.7.11.4

_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to