[Piglit] [PATCH 9/9] cl: Add sinpi tests
Aaron Watry
awatry at gmail.com
Thu Sep 25 13:01:14 PDT 2014
Signed-off-by: Aaron Watry <awatry at gmail.com>
---
generated_tests/generate-cl-math-builtins.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/generated_tests/generate-cl-math-builtins.py b/generated_tests/generate-cl-math-builtins.py
index 9f5d75c..dfc1d1d 100644
--- a/generated_tests/generate-cl-math-builtins.py
+++ b/generated_tests/generate-cl-math-builtins.py
@@ -52,6 +52,7 @@ CLC_VERSION_MIN = {
'sign' : 10,
'sin' : 10,
'sinh' : 10,
+ 'sinpi' : 10,
'tan' : 10,
'tanh' : 10,
'sqrt' : 10,
@@ -263,6 +264,15 @@ tests = {
],
'tolerance': 4
},
+ 'sinpi' : {
+ 'arg_types' : [F, F],
+ 'function_type': 'ttt',
+ 'values' : [
+ [0.0, 0.0, sin(pi*pi/2), sin(pi*3*pi/2), sin(2*pi*pi), sin(pi*1.12345)], # Result
+ [0.0, 1.0, pi / 2, pi, 3 * pi / 2, 2 * pi, 1.12345 ] # Arg0
+ ],
+ 'tolerance' : 4
+ },
'sqrt' : {
'arg_types': [F, F],
'function_type': 'ttt',
--
2.0.0
More information about the Piglit
mailing list