[Piglit] [PATCH] CL Builtin: Remove an invalid mad24 test

Aaron Watry awatry at gmail.com
Sun Mar 31 07:08:24 PDT 2013


The CL spec says that the results of this test are undefined.  mad24 and mul24 assume that the
input values are 24-bit integers, and anything in the upper 8 bits gets treated in an
implementation-defined manner.
---
 generated_tests/generate-cl-int-builtins.py |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/generated_tests/generate-cl-int-builtins.py b/generated_tests/generate-cl-int-builtins.py
index 2460594..1936454 100755
--- a/generated_tests/generate-cl-int-builtins.py
+++ b/generated_tests/generate-cl-int-builtins.py
@@ -577,10 +577,10 @@ builtins = {
             'arg_types': [T, T, T, T],
             'function_type': 'ttt',
             'values': [
-                [0,2, 0,520,     1],
-                [0,1,-1, 32, 2**30],
-                [0,1,-1, 16,     1],
-                [0,1,-1,  8,     1]
+                [0, 2,  0, 520],
+                [0, 1, -1,  32],
+                [0, 1, -1,  16],
+                [0, 1, -1,   8]
             ]
         },
         'mul24':{
-- 
1.7.10.4



More information about the Piglit mailing list