[Piglit] [PATCH 9/9] cl: Add more cospi/sinpi tests
Aaron Watry
awatry at gmail.com
Fri Oct 17 18:48:59 PDT 2014
Signed-off-by: Aaron Watry <awatry at gmail.com>
---
generated_tests/generate-cl-math-builtins.py | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/generated_tests/generate-cl-math-builtins.py b/generated_tests/generate-cl-math-builtins.py
index cc9b60b..f6f120d 100644
--- a/generated_tests/generate-cl-math-builtins.py
+++ b/generated_tests/generate-cl-math-builtins.py
@@ -179,8 +179,8 @@ tests = {
'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
+ [1.0, cos(pi*pi/2), cos(pi*3*pi/2), cos(2*pi*pi), cos(pi*1.12345), cos(pi*pow(2,20)), cos(pi*pow(2,24)), cos(pi*pow(2,120)), float("nan")], # Result
+ [0.0, pi / 2, 3 * pi / 2, 2 * pi, 1.12345 , pow(2,20), pow(2,24), pow(2,120), float("nan")] # Arg0
],
'tolerance' : 4
},
@@ -278,8 +278,12 @@ tests = {
'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
+ [0.0, 0.0, sin(pi*pi/2), sin(pi*3*pi/2), sin(2*pi*pi),
+ sin(pi*1.12345), sin(pi*7), sin(pi*8), sin(pi*pow(2,20)),
+ sin(pi*pow(2,24)), sin(pi*pow(2,120)), float("nan")],#Result
+ [0.0, 1.0, pi / 2, 3 * pi / 2, 2 * pi,
+ 1.12345 , 7, 8, pow(2,20),
+ pow(2,24), pow(2,120), float("nan")] #Arg0
],
'tolerance' : 4
},
--
2.1.0
More information about the Piglit
mailing list