Signed-off-by: Aaron Watry <awa...@gmail.com> --- generated_tests/generate-cl-math-builtins.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/generated_tests/generate-cl-math-builtins.py b/generated_tests/generate-cl-math-builtins.py index 414e397..1c6add4 100644 --- a/generated_tests/generate-cl-math-builtins.py +++ b/generated_tests/generate-cl-math-builtins.py @@ -25,11 +25,12 @@ import os from genclbuiltins import gen -from math import acos, atan, pi, sin, sqrt, cos +from math import acos, atan, atan2, pi, sin, sqrt, cos CLC_VERSION_MIN = { 'acos' : 10, 'atan' : 10, + 'atan2' : 10, 'ceil' : 10, 'copysign' : 10, 'cos' : 10, @@ -68,6 +69,16 @@ tests = { ], 'tolerance' : 2 }, + 'atan2' : { + 'arg_types' : [F, F, F], + 'function_type': 'ttt', + 'values' : [ + [atan2(0.0, 0.0), atan2(1.2345, 10.0), atan2(35671470.0, 0.1)], # Result + [0.0, 1.2345, 35671470.0 ], # Arg0 + [0.0, 10.0, 0.1 ] # Arg1 + ], + 'tolerance' : 6 + }, 'ceil' : { 'arg_types': [F, F], 'function_type': 'ttt', -- 1.9.1 _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit