diff options
author | Aaron Watry <awatry@gmail.com> | 2014-09-25 13:52:15 -0500 |
---|---|---|
committer | Aaron Watry <awatry@gmail.com> | 2014-10-03 11:04:30 -0500 |
commit | 18ecbfc25718ab62c4a23bd364d2df914a783b1b (patch) | |
tree | 713e76e4f8f10a3b34f29aa450d094efe29a7249 | |
parent | f5afe1466be0b0591166633a8e82f68b93209756 (diff) | |
download | piglit-18ecbfc25718ab62c4a23bd364d2df914a783b1b.tar.gz |
cl: Add acosh tests
Also added myself to the file authors list
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, 13 insertions, 1 deletions
diff --git a/generated_tests/generate-cl-math-builtins.py b/generated_tests/generate-cl-math-builtins.py index fcdcc94d1..7f98d6832 100644 --- a/generated_tests/generate-cl-math-builtins.py +++ b/generated_tests/generate-cl-math-builtins.py @@ -20,15 +20,18 @@ # SOFTWARE. # # Authors: Tom Stellard <thomas.stellard@amd.com> +# Aaron Watry <awatry@gmail.com> # import os from genclbuiltins import gen, NEGNAN -from math import acos, asin, atan, atan2, fmod, pi, sin, sqrt, cos, fabs, tan, pow +from math import acos, acosh, asin, atan, atan2, fmod, pi, sin, sqrt, cos, fabs +from math import tan, pow CLC_VERSION_MIN = { 'acos' : 10, + 'acosh' : 10, 'asin' : 10, 'atan' : 10, 'atan2' : 10, @@ -64,6 +67,15 @@ tests = { ], 'tolerance' : 4 }, + 'acosh' : { + 'arg_types' : [F, F], + 'function_type': 'ttt', + 'values' : [ + [0.0, acosh(1.12345), float("nan"), acosh(123456789.01234)], #Result + [1.0, 1.12345, float("nan"), 123456789.01234 ] #Arg0 + ], + 'tolerance' : 4 + }, 'asin' : { 'arg_types' : [F, F], 'function_type': 'ttt', |