diff options
author | Jan Vesely <jan.vesely@rutgers.edu> | 2015-04-11 19:41:09 -0400 |
---|---|---|
committer | Jan Vesely <jan.vesely@rutgers.edu> | 2015-04-20 16:59:45 -0400 |
commit | e4b46dc198a6482d34280748022afd0e29729eaa (patch) | |
tree | a49ad661758927406e74d967d6a7baffc7fb180e /generated_tests/gen_cl_math_builtins.py | |
parent | 64ea3b50b042879c7c55729997cc4cdad1fe22bd (diff) |
cl: Add tests for common builtin functions
Move sign and mix out of math
All tests pass on Turks
All tests except step pass on Intel CPU, it fails in NaN cases.
v2: Remove min/max NaN tests.
OpenCL 1.1 changed the wording, making the results undefined
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Diffstat (limited to 'generated_tests/gen_cl_math_builtins.py')
-rw-r--r-- | generated_tests/gen_cl_math_builtins.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/generated_tests/gen_cl_math_builtins.py b/generated_tests/gen_cl_math_builtins.py index 331202ccb..489be9d53 100644 --- a/generated_tests/gen_cl_math_builtins.py +++ b/generated_tests/gen_cl_math_builtins.py @@ -57,10 +57,8 @@ CLC_VERSION_MIN = { 'ldexp' : 10, 'log10' : 10, 'log1p' : 10, - 'mix' : 10, 'nextafter' : 10, 'round' : 10, - 'sign' : 10, 'sin' : 10, 'sinh' : 10, 'sinpi' : 10, @@ -317,16 +315,6 @@ tests = { ], 'tolerance' : 2 }, - 'mix' : { #x + (y - x) * a - 'arg_types': [F, F, F, F], - 'function_type': 'tts', - 'values': [ - [float("nan"), float("nan"), 1.0, 3.0, 10.0 ], # Result - [1.0 , 1.0, 1.0, 4.0, 15.0 ], # Arg0 - [2.0 , float("nan"), 2.0, 2.0, 10.0 ], # Arg1 - [float("nan"), 0.0, 0.0, 0.5, 1.0 ], # Arg2 - ] - }, 'nextafter' : { 'arg_types': [F, F, F], 'function_type': 'ttt', @@ -344,15 +332,6 @@ tests = { [0.5, -0.5, 0.0, -0.0, float("nan"), -3.99, 1.5, 0.4, 0.6] ] }, - '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")] - ] - }, 'sin' : { 'arg_types' : [F, F], 'function_type': 'ttt', |