[pypy-svn] r67472 - pypy/branch/no-recompilation/pypy/jit/backend/x86/test
fijal at codespeak.net
fijal at codespeak.net
Fri Sep 4 15:23:32 CEST 2009
Author: fijal
Date: Fri Sep 4 15:23:28 2009
New Revision: 67472
Modified:
pypy/branch/no-recompilation/pypy/jit/backend/x86/test/test_regalloc.py
Log:
A test for last "oups" commit
Modified: pypy/branch/no-recompilation/pypy/jit/backend/x86/test/test_regalloc.py
==============================================================================
--- pypy/branch/no-recompilation/pypy/jit/backend/x86/test/test_regalloc.py (original)
+++ pypy/branch/no-recompilation/pypy/jit/backend/x86/test/test_regalloc.py Fri Sep 4 15:23:28 2009
@@ -491,6 +491,26 @@
self.interpret(ops, [0, 0, 0, 0, 0, 0, 0, 0])
assert self.getint(0) == 0
+ def test_bug_wrong_stack_adj(self):
+ ops = '''
+ [i0, i1, i2, i3, i4, i5, i6, i7, i8]
+ guard_true(i0)
+ fail(0, i0, i1, i2, i3, i4, i5, i6, i7, i8)
+ fail(1, i0, i1, i2, i3, i4, i5, i6, i7, i8)
+ '''
+ loop = self.interpret(ops, [0, 1, 2, 3, 4, 5, 6, 7, 8])
+ assert self.getint(0) == 0
+ bridge_ops = '''
+ [i0, i1, i2, i3, i4, i5, i6, i7, i8]
+ call(ConstClass(raising_fptr), 0, descr=raising_calldescr)
+ fail(i0, i1, i2, i3, i4, i5, i6, i7, i8)
+ '''
+ self.attach_bridge(bridge_ops, loop, loop.operations[0])
+ for i in range(9):
+ self.cpu.set_future_value_int(i, i)
+ self.cpu.execute_operations(loop)
+ assert self.getints(9) == range(9)
+
class TestRegallocCompOps(BaseTestRegalloc):
def test_cmp_op_0(self):
More information about the Pypy-commit
mailing list