[pypy-commit] pypy s390x-backend: ignore register 13 in pair allocation
plan_rich
pypy.commits at gmail.com
Wed Mar 2 10:03:33 EST 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch: s390x-backend
Changeset: r82657:3e0b424d69d1
Date: 2016-03-02 16:02 +0100
http://bitbucket.org/pypy/pypy/changeset/3e0b424d69d1/
Log: ignore register 13 in pair allocation
diff --git a/rpython/jit/backend/llsupport/tl/test/zrpy_gc_hypo_test.py b/rpython/jit/backend/llsupport/tl/test/zrpy_gc_hypo_test.py
--- a/rpython/jit/backend/llsupport/tl/test/zrpy_gc_hypo_test.py
+++ b/rpython/jit/backend/llsupport/tl/test/zrpy_gc_hypo_test.py
@@ -55,7 +55,7 @@
@given(st.bytecode_block())
def test_execute_single_bytecode(self, program):
- clazz, bytecode, consts, stack = program
+ bytecode, consts = program
result, out, err = self.execute(bytecode, consts)
if result != 0:
raise Exception(("could not run program. returned %d"
diff --git a/rpython/jit/backend/zarch/regalloc.py b/rpython/jit/backend/zarch/regalloc.py
--- a/rpython/jit/backend/zarch/regalloc.py
+++ b/rpython/jit/backend/zarch/regalloc.py
@@ -261,6 +261,9 @@
i = len(self.free_regs)-1
while i >= 0:
even = self.free_regs[i]
+ if even.value == 13:
+ i -= 1
+ continue
if even.is_even():
# found an even registers that is actually free
odd = r.odd_reg(even)
diff --git a/rpython/jit/backend/zarch/test/test_zrpy_gc_hypo.py b/rpython/jit/backend/zarch/test/test_zrpy_gc_hypo.py
--- a/rpython/jit/backend/zarch/test/test_zrpy_gc_hypo.py
+++ b/rpython/jit/backend/zarch/test/test_zrpy_gc_hypo.py
@@ -1,5 +1,9 @@
from rpython.jit.backend.llsupport.tl.test.zrpy_gc_hypo_test import GCHypothesis
+import py
+
+py.test.skip("not yet working")
+
class TestGCHypothesis(GCHypothesis):
# runs ../../llsupport/tl/test/zrpy_gc_hypo_test.py
gcrootfinder = "shadowstack"
More information about the pypy-commit
mailing list