[Piglit] [PATCH 3/5] cl: Add isgreaterequal(float, float) relational tests
Aaron Watry
awatry at gmail.com
Wed Jun 11 12:14:13 PDT 2014
Signed-off-by: Aaron Watry <awatry at gmail.com>
---
generated_tests/generate-cl-relational-builtins.py | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/generated_tests/generate-cl-relational-builtins.py b/generated_tests/generate-cl-relational-builtins.py
index cf2540a..97e6be6 100644
--- a/generated_tests/generate-cl-relational-builtins.py
+++ b/generated_tests/generate-cl-relational-builtins.py
@@ -31,7 +31,8 @@ from genclbuiltins import gen, TRUE
CLC_VERSION_MIN = {
'isnan' : 10,
- 'isgreater' : 10
+ 'isgreater' : 10,
+ 'isgreaterequal' : 10
}
DATA_TYPES = ['float']
@@ -61,6 +62,15 @@ tests = {
[0.0, float("nan"), 1.0, 1, float("nan"), float("inf"), 1.0, 0.5 ], # Arg0
[0.0, float("nan"), 1.0, float("nan"), 1, float("inf"), 0.5, 1.0 ] # Arg1
]
+ },
+ 'isgreaterequal' : {
+ 'arg_types': [I, F, F],
+ 'function_type': 'ttt',
+ 'values': [
+ [TRUE, 0, TRUE, 0, 0, TRUE, TRUE, 0], # Result
+ [0.0, float("nan"), 1.0, 1, float("nan"), float("inf"), 1.0, 0.5 ], # Arg0
+ [0.0, float("nan"), 1.0, float("nan"), 1, float("inf"), 0.5, 1.0 ] # Arg1
+ ]
}
}
--
1.9.1
More information about the Piglit
mailing list