[Piglit] [PATCH 2/3] cl: add asinpi test
Jan Vesely
jan.vesely at rutgers.edu
Wed Mar 25 10:33:50 PDT 2015
copied from asin
tested on clover and intel ocl
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
generated_tests/gen_cl_math_builtins.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/generated_tests/gen_cl_math_builtins.py b/generated_tests/gen_cl_math_builtins.py
index 0890fa1..d86b53a 100644
--- a/generated_tests/gen_cl_math_builtins.py
+++ b/generated_tests/gen_cl_math_builtins.py
@@ -36,6 +36,7 @@ CLC_VERSION_MIN = {
'acospi' : 10,
'asin' : 10,
'asinh' : 10,
+ 'asinpi' : 10,
'atan' : 10,
'atan2' : 10,
'atanh' : 10,
@@ -124,6 +125,15 @@ tests = {
],
'tolerance' : 4
},
+ 'asinpi' : {
+ 'arg_types' : [F, F],
+ 'function_type': 'ttt',
+ 'values' : [
+ [-1/2, 0.0, 1/2, asin(0.12345)/pi, float("nan")], # Result
+ [-1.0, 0.0, 1.0, 0.12345, float("nan")] # Arg0
+ ],
+ 'tolerance' : 5
+ },
'atan' : {
'arg_types' : [F, F],
'function_type': 'ttt',
--
2.1.0
More information about the Piglit
mailing list