diff options
author | Aaron Watry <awatry@gmail.com> | 2014-10-24 07:45:21 -0500 |
---|---|---|
committer | Aaron Watry <awatry@gmail.com> | 2014-10-29 08:45:17 -0500 |
commit | f6d5fc857bdfe8dbd03d9fd39635e0da9c83a4a6 (patch) | |
tree | f52fae3546e7fd5d7fe24a72e5bb6979ebbb1961 | |
parent | 5d92b506d3b1fca68b2028b48e0f3060f0468ef3 (diff) |
cl: Add erfc tests
Tested on Apple CL (10.9, CPU and GF9400m) to 1ULP.
Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
-rw-r--r-- | generated_tests/generate-cl-math-builtins.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/generated_tests/generate-cl-math-builtins.py b/generated_tests/generate-cl-math-builtins.py index 2036cecf3..7e475f297 100644 --- a/generated_tests/generate-cl-math-builtins.py +++ b/generated_tests/generate-cl-math-builtins.py @@ -44,6 +44,7 @@ CLC_VERSION_MIN = { 'cosh' : 10, 'cospi' : 10, 'erf' : 10, + 'erfc' : 10, 'fabs' : 10, 'floor' : 10, 'fmod' : 10, @@ -194,6 +195,15 @@ tests = { ], 'tolerance' : 16 }, + 'erfc' : { + 'arg_types' : [F, F], + 'function_type': 'ttt', + 'values' : [ + [1.0, 0.95, 0.009995, 1.994999, 0.0, 0.0, 2.0], # Result + [0.0, 1.960/sqrt(2.0), 2.576/sqrt(2.0), -2.807/sqrt(2.0), 11.1, float("inf"), float("-inf")] # Arg0 + ], + 'tolerance' : 16 + }, 'fabs' : { 'arg_types' : [F, F], 'function_type': 'ttt', |