aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2014-09-25 14:08:13 -0500
committerAaron Watry <awatry@gmail.com>2014-10-03 11:04:31 -0500
commit411b3c9e87b4da135fbb7b1325d84481b8a34ae2 (patch)
tree4adc3558603c8365cef672fc3a762cefb148c2eb
parentc70e729bd9a50cf42e06b979f62702dee6fe1543 (diff)
downloadpiglit-411b3c9e87b4da135fbb7b1325d84481b8a34ae2.tar.gz
cl: Add atanh tests
Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
-rw-r--r--generated_tests/generate-cl-math-builtins.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/generated_tests/generate-cl-math-builtins.py b/generated_tests/generate-cl-math-builtins.py
index 7d307660a..5a1fa0279 100644
--- a/generated_tests/generate-cl-math-builtins.py
+++ b/generated_tests/generate-cl-math-builtins.py
@@ -26,7 +26,7 @@
import os
from genclbuiltins import gen, NEGNAN
-from math import acos, acosh, asin, asinh, atan, atan2, cos
+from math import acos, acosh, asin, asinh, atan, atan2, atanh, cos
from math import fabs, fmod, pi, pow, sin, sqrt, tan
CLC_VERSION_MIN = {
@@ -36,6 +36,7 @@ CLC_VERSION_MIN = {
'asinh' : 10,
'atan' : 10,
'atan2' : 10,
+ 'atanh' : 10,
'ceil' : 10,
'copysign' : 10,
'cos' : 10,
@@ -114,6 +115,15 @@ tests = {
],
'tolerance' : 6
},
+ 'atanh' : {
+ 'arg_types' : [F, F],
+ 'function_type': 'ttt',
+ 'values' : [
+ [0.0, float("inf"), float("-inf"), float("nan"), atanh(0.123456789)], #Result
+ [0.0, 1.0, -1.0, float("nan"), 0.123456789 ] #Arg0
+ ],
+ 'tolerance' : 4
+ },
'ceil' : {
'arg_types': [F, F],
'function_type': 'ttt',