[pypy-commit] pypy ppc-jit-backend: (bivab, hager): make test hit the issue
hager
noreply at buildbot.pypy.org
Tue Feb 14 10:50:31 CET 2012
Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r52440:b9747ad2f590
Date: 2012-02-14 10:50 +0100
http://bitbucket.org/pypy/pypy/changeset/b9747ad2f590/
Log: (bivab, hager): make test hit the issue
diff --git a/pypy/jit/backend/ppc/test/test_runner.py b/pypy/jit/backend/ppc/test/test_runner.py
--- a/pypy/jit/backend/ppc/test/test_runner.py
+++ b/pypy/jit/backend/ppc/test/test_runner.py
@@ -95,8 +95,7 @@
assert self.cpu.get_latest_value_int(i) == i + 1
def test_unicodesetitem_really_needs_temploc(self):
- py.test.xfail("problems with longevity")
- u_box = self.alloc_unicode(u"abcdefg")
+ u_box = self.alloc_unicode(u"abcdsdasdsaddefg")
i0 = BoxInt()
i1 = BoxInt()
@@ -108,8 +107,9 @@
i7 = BoxInt()
i8 = BoxInt()
i9 = BoxInt()
+ p10 = BoxPtr()
- inputargs = [i0,i1,i2,i3,i4,i5,i6,i7,i8,i9]
+ inputargs = [i0,i1,i2,i3,i4,i5,i6,i7,i8,i9,p10]
looptoken = JitCellToken()
targettoken = TargetToken()
faildescr = BasicFailDescr(1)
@@ -117,11 +117,11 @@
operations = [
ResOperation(rop.LABEL, inputargs, None, descr=targettoken),
ResOperation(rop.UNICODESETITEM,
- [u_box, BoxInt(4), BoxInt(123)], None),
+ [p10, i6, ConstInt(123)], None),
ResOperation(rop.FINISH, inputargs, None, descr=faildescr)
]
- args = [(i + 1) for i in range(10)]
+ args = [(i + 1) for i in range(10)] + [u_box.getref_base()]
self.cpu.compile_loop(inputargs, operations, looptoken)
fail = self.cpu.execute_token(looptoken, *args)
assert fail.identifier == 1
More information about the pypy-commit
mailing list