[pypy-commit] pypy numpy-fixes: ajdust expected jit ops for changes in loop.py, ufunc.py

mattip noreply at buildbot.pypy.org
Wed May 6 21:14:52 CEST 2015


Author: mattip <matti.picus at gmail.com>
Branch: numpy-fixes
Changeset: r77169:32f0d226f5bf
Date: 2015-05-06 22:15 +0300
http://bitbucket.org/pypy/pypy/changeset/32f0d226f5bf/

Log:	ajdust expected jit ops for changes in loop.py, ufunc.py

diff --git a/pypy/module/pypyjit/test_pypy_c/test_micronumpy.py b/pypy/module/pypyjit/test_pypy_c/test_micronumpy.py
--- a/pypy/module/pypyjit/test_pypy_c/test_micronumpy.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_micronumpy.py
@@ -67,11 +67,10 @@
         assert loop.match("""
             f31 = raw_load(i9, i29, descr=<ArrayF 8>)
             guard_not_invalidated(descr=...)
-            i32 = cast_float_to_int(f31)
-            i33 = int_and(i32, 255)
-            guard_true(i33, descr=...)
             i34 = getarrayitem_raw(#, #, descr=<ArrayU 1>)  # XXX what are these?
             guard_value(i34, #, descr=...)                  # XXX don't appear in
+            i32 = float_ne(f31, 0.000000)
+            guard_true(i32, descr=...)
             i35 = getarrayitem_raw(#, #, descr=<ArrayU 1>)  # XXX equiv test_zjit
             i36 = int_add(i24, 1)
             i37 = int_add(i29, i28)
@@ -152,7 +151,7 @@
             f86 = float_add(f74, f85)
             i87 = int_add(i76, 1)
             --TICK--
-            jump(p0, p1, p3, p6, p7, p12, p14, f86, p18, i87, i62, p41, i58, p47, i40, i64, i70, descr=...)
+            jump(p0, p1, p5, p6, p7, p8, p11, p13, f86, p17, i87, i62, p42, i58, p48, i41, i64, i70, descr=...)
         """)
 
     def test_array_flatiter_next(self):


More information about the pypy-commit mailing list