diff options
author | Aaron Watry <awatry@gmail.com> | 2014-09-25 14:43:41 -0500 |
---|---|---|
committer | Aaron Watry <awatry@gmail.com> | 2014-10-03 11:04:31 -0500 |
commit | 6b073cd1f0614cfb78a2b12f665f5323f2bfea3b (patch) | |
tree | aa4f3e0a0220be1064a50262e9d89eb9d5f5fb81 | |
parent | ea6a9966e2c84b9986903cddc333f91f157c440d (diff) | |
download | piglit-6b073cd1f0614cfb78a2b12f665f5323f2bfea3b.tar.gz |
cl: Add sinh 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.py | 12 |
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 ad43ffe50..232f98325 100644 --- a/generated_tests/generate-cl-math-builtins.py +++ b/generated_tests/generate-cl-math-builtins.py @@ -27,7 +27,7 @@ import os from genclbuiltins import gen, NEGNAN from math import acos, acosh, asin, asinh, atan, atan2, atanh, cos, cosh -from math import fabs, fmod, pi, pow, sin, sqrt, tan +from math import fabs, fmod, pi, pow, sin, sinh, sqrt, tan CLC_VERSION_MIN = { 'acos' : 10, @@ -50,6 +50,7 @@ CLC_VERSION_MIN = { 'round' : 10, 'sign' : 10, 'sin' : 10, + 'sinh' : 10, 'tan' : 10, 'sqrt' : 10, 'trunc' : 10 @@ -242,6 +243,15 @@ tests = { ], 'tolerance': 2 }, + 'sinh' : { + 'arg_types' : [F, F], + 'function_type': 'ttt', + 'values' : [ + [0.0, sinh(0.123456789), float("inf"), float("-inf"), float("nan")],# Result + [0.0, 0.123456789, float("inf"), float("-inf"), float("nan")] # Arg0 + ], + 'tolerance': 4 + }, 'sqrt' : { 'arg_types': [F, F], 'function_type': 'ttt', |