Pass on Intel CPU, fail (expected) on Turks
Signed-off-by: Jan Vesely <[email protected]>
---
generated_tests/gen_cl_math_builtins.py | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/generated_tests/gen_cl_math_builtins.py
b/generated_tests/gen_cl_math_builtins.py
index ce7682d..9e51079 100644
--- a/generated_tests/gen_cl_math_builtins.py
+++ b/generated_tests/gen_cl_math_builtins.py
@@ -53,6 +53,8 @@ CLC_VERSION_MIN = {
'exp' : 10,
'fabs' : 10,
'floor' : 10,
+ 'fmax' : 10,
+ 'fmin' : 10,
'fmod' : 10,
'ldexp' : 10,
'log10' : 10,
@@ -277,6 +279,24 @@ tests = {
[0.5, -0.5, 0.0, -0.0, float("nan"), -3.99, 1.5]
]
},
+ 'fmax' : {
+ 'arg_types': [F, F, F],
+ 'function_type': 'tss',
+ 'values': [
+ [1.0, 0.0, 0.0, 0.0, 1.0, 1.0, float("nan")], #Result
+ [1.0, -0.5, 0.0, 0.0, 1.0, float("nan"), float("nan")], #Arg0
+ [0.0, 0.0, 0.0, -0.5, float("nan"), 1.0, float("nan")] #Arg1
+ ]
+ },
+ 'fmin' : {
+ 'arg_types': [F, F, F],
+ 'function_type': 'tss',
+ 'values': [
+ [0.0, -0.5, 0.0, -0.5, 1.0, 1.0, float("nan")], #Result
+ [1.0, -0.5, 0.0, 0.0, 1.0, float("nan"), float("nan")], #Arg0
+ [0.0, 0.0, 0.0, -0.5, float("nan"), 1.0, float("nan")] #Arg1
+ ]
+ },
'fmod' : {
'arg_types': [F, F, F],
'function_type': 'ttt',
--
2.1.0
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit