diff options
author | Jan Vesely <jan.vesely@rutgers.edu> | 2015-03-25 13:13:46 -0400 |
---|---|---|
committer | Jan Vesely <jan.vesely@rutgers.edu> | 2015-03-26 17:34:08 -0400 |
commit | d74c8beda810191ba6d6cf0178143d61029e6cb1 (patch) | |
tree | cd945c32def78174d12bf40b973844dc43a7fed0 | |
parent | 05ad7f4170d96bf8c4a90e53e411441d56651d5e (diff) |
cl: add asinpi test
copied from asin
tested on clover and intel ocl
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
-rw-r--r-- | generated_tests/gen_cl_math_builtins.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/generated_tests/gen_cl_math_builtins.py b/generated_tests/gen_cl_math_builtins.py index 0890fa1c2..d86b53a2e 100644 --- a/generated_tests/gen_cl_math_builtins.py +++ b/generated_tests/gen_cl_math_builtins.py @@ -36,6 +36,7 @@ CLC_VERSION_MIN = { 'acospi' : 10, 'asin' : 10, 'asinh' : 10, + 'asinpi' : 10, 'atan' : 10, 'atan2' : 10, 'atanh' : 10, @@ -124,6 +125,15 @@ tests = { ], 'tolerance' : 4 }, + 'asinpi' : { + 'arg_types' : [F, F], + 'function_type': 'ttt', + 'values' : [ + [-1/2, 0.0, 1/2, asin(0.12345)/pi, float("nan")], # Result + [-1.0, 0.0, 1.0, 0.12345, float("nan")] # Arg0 + ], + 'tolerance' : 5 + }, 'atan' : { 'arg_types' : [F, F], 'function_type': 'ttt', |