[Piglit] [PATCH] [CL]: Fix mul24 test and add mad24/mul24 uint tests

Aaron Watry awatry at gmail.com
Sun Mar 31 07:38:06 PDT 2013


---
 generated_tests/generate-cl-int-builtins.py |   27 ++++++++++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)

diff --git a/generated_tests/generate-cl-int-builtins.py b/generated_tests/generate-cl-int-builtins.py
index 1936454..0f61967 100755
--- a/generated_tests/generate-cl-int-builtins.py
+++ b/generated_tests/generate-cl-int-builtins.py
@@ -587,9 +587,30 @@ builtins = {
             'arg_types': [T, T, T],
             'function_type': 'ttt',
             'values': [
-                [0,1, 1, 512,     0],
-                [0,1,-1,  32, 2**30],
-                [0,1,-1,  16,     1]
+                [0,1, 1, 512, 4278190081],
+                [0,1,-1,  32,    2**23-1],
+                [0,1,-1,  16,    2**23-1]
+            ]
+        }
+    },
+    'uint': {
+        'mad24':{
+            'arg_types': [T, T, T, T],
+            'function_type': 'ttt',
+            'values': [
+                [0, 2, 4278190080, 520],
+                [0, 1,    2**24-1,  32],
+                [0, 1,    2**24-1,  16],
+                [0, 1,    2**24-1,   8]
+            ]
+        },
+        'mul24':{
+            'arg_types': [T, T, T],
+            'function_type': 'ttt',
+            'values': [
+                [0,1,4261412865, 512],
+                [0,1,   2**24-1,  32],
+                [0,1,   2**24-1,  16]
             ]
         }
     }
-- 
1.7.10.4



More information about the Piglit mailing list