[Piglit] [PATCH 2/4] cl: Add asin tests
Aaron Watry
awatry at gmail.com
Thu Sep 4 10:30:19 PDT 2014
Signed-off-by: Aaron Watry <awatry at gmail.com>
---
generated_tests/generate-cl-math-builtins.py | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/generated_tests/generate-cl-math-builtins.py b/generated_tests/generate-cl-math-builtins.py
index 1c6add4..124acf6 100644
--- a/generated_tests/generate-cl-math-builtins.py
+++ b/generated_tests/generate-cl-math-builtins.py
@@ -25,10 +25,11 @@
import os
from genclbuiltins import gen
-from math import acos, atan, atan2, pi, sin, sqrt, cos
+from math import acos, asin, atan, atan2, pi, sin, sqrt, cos
CLC_VERSION_MIN = {
'acos' : 10,
+ 'asin' : 10,
'atan' : 10,
'atan2' : 10,
'ceil' : 10,
@@ -60,6 +61,15 @@ tests = {
],
'tolerance' : 4
},
+ 'asin' : {
+ 'arg_types' : [F, F],
+ 'function_type': 'ttt',
+ 'values' : [
+ [-pi/2, 0.0, pi/2, asin(0.12345), float("nan")], # Result
+ [-1.0, 0.0, 1.0, 0.12345, float("nan")] # Arg0
+ ],
+ 'tolerance' : 4
+ },
'atan' : {
'arg_types' : [F, F],
'function_type': 'ttt',
--
1.9.1
More information about the Piglit
mailing list