summaryrefslogtreecommitdiff
path: root/generated_tests
diff options
context:
space:
mode:
authorZhu Bingbing <bingbingx.zhu@intel.com>2015-01-08 14:06:14 +0800
committerTom Stellard <thomas.stellard@amd.com>2015-01-23 16:02:02 -0500
commit2215e710896d87b0f5cb3d76d35d3ad83723b75d (patch)
tree6ee2ef5b424d23cf8b25f349dd7d461b4eac3e16 /generated_tests
parentce3488c0ed38927f07ce68ab7c9e24147ab449de (diff)
cl: add atanpi tests
This case will tests common result ande boundary result. Signed-off-by: Zhu Bingbing <bingbingx.zhu@intel.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
Diffstat (limited to 'generated_tests')
-rw-r--r--generated_tests/generate-cl-math-builtins.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/generated_tests/generate-cl-math-builtins.py b/generated_tests/generate-cl-math-builtins.py
index ce16a6b92..a81038572 100644
--- a/generated_tests/generate-cl-math-builtins.py
+++ b/generated_tests/generate-cl-math-builtins.py
@@ -37,6 +37,7 @@ CLC_VERSION_MIN = {
'atan' : 10,
'atan2' : 10,
'atanh' : 10,
+ 'atanpi': 10,
'cbrt' : 10,
'ceil' : 10,
'copysign' : 10,
@@ -138,6 +139,15 @@ tests = {
],
'tolerance' : 4
},
+ 'atanpi' : {
+ 'arg_types' : [F, F],
+ 'function_type': 'ttt',
+ 'values' : [
+ [0.0, -0.0, atan(1.02345)/pi, atan(-1.02345)/pi, float("nan"), 0.5, -0.5 ],
+ [0.0, -0.0, 1.02345, -1.02345, float("nan"), float("inf"), float("-inf") ]
+ ],
+ 'tolerance' : 5
+ },
'cbrt' : {
'arg_types': [F, F],
'function_type': 'ttt',