[Piglit] [PATCH] builtin tests: Add negation source modifer test for logical instructions
Abdiel Janulgue
abdiel.janulgue at linux.intel.com
Tue Jun 3 13:35:34 PDT 2014
Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
---
generated_tests/builtin_function.py | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/generated_tests/builtin_function.py b/generated_tests/builtin_function.py
index fc25ce1..51e46c2 100644
--- a/generated_tests/builtin_function.py
+++ b/generated_tests/builtin_function.py
@@ -1276,6 +1276,24 @@ def _make_vector_or_matrix_test_vectors(test_suite_dict):
f('op-bitxor', 2, 130, lambda x, y: x ^ y, match_simple_binop,
[ints+ivecs+uints+uvecs, ints+ivecs+uints+uvecs],
template='({0} ^ {1})')
+ f('op-bitand-neg', 2, 130, lambda x, y: x & (-y), match_simple_binop,
+ [ints+ivecs+uints+uvecs, ints+ivecs+uints+uvecs],
+ template='({0} & (- {1}))')
+ f('op-bitand-not', 2, 130, lambda x, y: x & (~y), match_simple_binop,
+ [ints+ivecs+uints+uvecs, ints+ivecs+uints+uvecs],
+ template='({0} & (~ {1}))')
+ f('op-bitor-neg', 2, 130, lambda x, y: x | (-y), match_simple_binop,
+ [ints+ivecs+uints+uvecs, ints+ivecs+uints+uvecs],
+ template='({0} | (- {1}))')
+ f('op-bitor-not', 2, 130, lambda x, y: x | (~y), match_simple_binop,
+ [ints+ivecs+uints+uvecs, ints+ivecs+uints+uvecs],
+ template='({0} | (~ {1}))')
+ f('op-bitxor-neg', 2, 130, lambda x, y: x ^ (-y), match_simple_binop,
+ [ints+ivecs+uints+uvecs, ints+ivecs+uints+uvecs],
+ template='({0} ^ (- {1}))')
+ f('op-bitxor-not', 2, 130, lambda x, y: x ^ (~y), match_simple_binop,
+ [ints+ivecs+uints+uvecs, ints+ivecs+uints+uvecs],
+ template='({0} ^ (~ {1}))')
f('length', 1, 110, np.linalg.norm, None, [floats+vecs])
f('distance', 2, 110, lambda x, y: np.linalg.norm(x-y), match_args(0, 1),
[floats+vecs, floats+vecs])
--
1.9.1
More information about the Piglit
mailing list