summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2015-03-25 13:27:20 -0400
committerJan Vesely <jan.vesely@rutgers.edu>2015-03-26 17:34:08 -0400
commit00813f6d57d037ffc590d6fbb583aa20077864d5 (patch)
tree9e567392eb66c074c9b6f87036f66ff4adadd1fb
parentd74c8beda810191ba6d6cf0178143d61029e6cb1 (diff)
cl: add atan2pi test
copied from atan2 tested on clover and intel ocl-sdk Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
-rw-r--r--generated_tests/gen_cl_math_builtins.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/generated_tests/gen_cl_math_builtins.py b/generated_tests/gen_cl_math_builtins.py
index d86b53a2e..59b7f1842 100644
--- a/generated_tests/gen_cl_math_builtins.py
+++ b/generated_tests/gen_cl_math_builtins.py
@@ -39,6 +39,7 @@ CLC_VERSION_MIN = {
'asinpi' : 10,
'atan' : 10,
'atan2' : 10,
+ 'atan2pi' : 10,
'atanh' : 10,
'atanpi': 10,
'cbrt' : 10,
@@ -153,6 +154,16 @@ tests = {
],
'tolerance' : 6
},
+ 'atan2pi' : {
+ 'arg_types' : [F, F, F],
+ 'function_type': 'ttt',
+ 'values' : [
+ [atan2(0.0, 0.0)/pi, atan2(1.2345, 10.0)/pi, atan2(35671470.0, 0.1)/pi], # Result
+ [0.0, 1.2345, 35671470.0 ], # Arg0
+ [0.0, 10.0, 0.1 ] # Arg1
+ ],
+ 'tolerance' : 6
+ },
'atanh' : {
'arg_types' : [F, F],
'function_type': 'ttt',