[pypy-commit] pypy vecopt: added uint vector addition test
plan_rich
noreply at buildbot.pypy.org
Thu Jun 11 11:16:04 CEST 2015
Author: Richard Plangger <rich at pasra.at>
Branch: vecopt
Changeset: r78027:685a9ce976c8
Date: 2015-06-11 11:16 +0200
http://bitbucket.org/pypy/pypy/changeset/685a9ce976c8/
Log: added uint vector addition test
diff --git a/pypy/module/micronumpy/test/test_zjit.py b/pypy/module/micronumpy/test/test_zjit.py
--- a/pypy/module/micronumpy/test/test_zjit.py
+++ b/pypy/module/micronumpy/test/test_zjit.py
@@ -169,6 +169,17 @@
self.assert_float_equal(result, 17.0 + 17.0)
self.check_vectorized(1, 1)
+ def define_uint_add():
+ return """
+ a = astype(|30|, uint64)
+ b = a + a
+ b -> 17
+ """
+ def test_uint_add(self):
+ result = self.run("uint_add")
+ assert int(result) == 17+17
+ self.check_vectorized(2, 1)
+
def define_float32_add_const():
return """
a = astype(|30|, float32)
More information about the pypy-commit
mailing list