[Piglit] [PATCH 2/2] cl: Add sinpi tests
Aaron Watry
awatry at gmail.com
Mon Sep 29 08:01:07 PDT 2014
v2: Remove stray ', pi' in Arg0 list
CC: Bruno Jiménez <brunojimen at gmail.com>
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 6677c1f..1642e05 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, 3 * pi / 2, 2 * pi, 1.12345 ] # Arg0
+ ],
+ 'tolerance' : 4
+ },
'sqrt' : {
'arg_types': [F, F],
'function_type': 'ttt',
--
1.9.1
More information about the Piglit
mailing list