Author: Hakan Ardo <[email protected]>
Branch: jit-targets
Changeset: r50109:ecb2ebdb7e57
Date: 2011-12-04 12:25 +0100
http://bitbucket.org/pypy/pypy/changeset/ecb2ebdb7e57/

Log:    The jumpop is not always among those selected

diff --git a/pypy/module/pypyjit/test_pypy_c/model.py 
b/pypy/module/pypyjit/test_pypy_c/model.py
--- a/pypy/module/pypyjit/test_pypy_c/model.py
+++ b/pypy/module/pypyjit/test_pypy_c/model.py
@@ -201,7 +201,7 @@
     def simple_loop_ops(self, *args, **kwds):
         ops = list(self._allops(*args, **kwds))
         labels = [op for op in ops if op.name == 'label']
-        jumpop = ops[-1]
+        jumpop = self.chunks[-1].operations[-1]
         assert jumpop.name == 'jump'
         assert jumpop.getdescr() == labels[-1].getdescr()
         i = ops.index(labels[-1])
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to