diff options
author | Aaron Watry <awatry@gmail.com> | 2014-09-25 13:58:17 -0500 |
---|---|---|
committer | Aaron Watry <awatry@gmail.com> | 2014-10-03 11:04:30 -0500 |
commit | c70e729bd9a50cf42e06b979f62702dee6fe1543 (patch) | |
tree | 1d20a98147c0f553625c1b3360815b2c8cbc4c40 | |
parent | 18ecbfc25718ab62c4a23bd364d2df914a783b1b (diff) | |
download | piglit-c70e729bd9a50cf42e06b979f62702dee6fe1543.tar.gz |
cl: Add asinh tests
Also re-organize math imports slightly
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.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/generated_tests/generate-cl-math-builtins.py b/generated_tests/generate-cl-math-builtins.py index 7f98d6832..7d307660a 100644 --- a/generated_tests/generate-cl-math-builtins.py +++ b/generated_tests/generate-cl-math-builtins.py @@ -26,13 +26,14 @@ import os from genclbuiltins import gen, NEGNAN -from math import acos, acosh, asin, atan, atan2, fmod, pi, sin, sqrt, cos, fabs -from math import tan, pow +from math import acos, acosh, asin, asinh, atan, atan2, cos +from math import fabs, fmod, pi, pow, sin, sqrt, tan CLC_VERSION_MIN = { 'acos' : 10, 'acosh' : 10, 'asin' : 10, + 'asinh' : 10, 'atan' : 10, 'atan2' : 10, 'ceil' : 10, @@ -85,6 +86,15 @@ tests = { ], 'tolerance' : 4 }, + 'asinh' : { + 'arg_types' : [F, F], + 'function_type': 'ttt', + 'values' : [ + [0.0, asinh(1.0), asinh(-1.12345), float("nan"), asinh(123456789.01234)], #Result + [0.0, 1.0, -1.12345, float("nan"), 123456789.01234 ] #Arg0 + ], + 'tolerance' : 4 + }, 'atan' : { 'arg_types' : [F, F], 'function_type': 'ttt', |