diff options
author | Aaron Watry <awatry@gmail.com> | 2014-09-25 14:54:01 -0500 |
---|---|---|
committer | Aaron Watry <awatry@gmail.com> | 2014-10-03 11:04:31 -0500 |
commit | 26f431fb039149859a95667f1008b826c6168fb1 (patch) | |
tree | 8b849cc49463125a34cb8cf1509c04fa2b056b0d | |
parent | bb705add40420b6f7ffc1ef517cc58724c2a4e02 (diff) |
cl: Add cospi tests
v2: Remove stray ', pi' in Arg0 list
CC: Bruno Jiménez <brunojimen@gmail.com>
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 | 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 531106d37..6677c1fa4 100644 --- a/generated_tests/generate-cl-math-builtins.py +++ b/generated_tests/generate-cl-math-builtins.py @@ -42,6 +42,7 @@ CLC_VERSION_MIN = { 'copysign' : 10, 'cos' : 10, 'cosh' : 10, + 'cospi' : 10, 'fabs' : 10, 'floor' : 10, 'fmod' : 10, @@ -172,6 +173,15 @@ tests = { ], 'tolerance' : 4 }, + 'cospi' : { + 'arg_types' : [F, F], + 'function_type': 'ttt', + 'values' : [ + [1.0, cos(pi*pi/2), cos(pi*3*pi/2), cos(2*pi*pi), cos(pi*1.12345)], # Result + [0.0, pi / 2, 3 * pi / 2, 2 * pi, 1.12345 ] # Arg0 + ], + 'tolerance' : 4 + }, 'fabs' : { 'arg_types' : [F, F], 'function_type': 'ttt', |