[pypy-commit] pypy s390x-backend: added some sanity checks, s390x only fails 4 (in test_runner)
plan_rich
pypy.commits at gmail.com
Sat Jan 2 04:48:52 EST 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch: s390x-backend
Changeset: r81522:6d2f6b85c6e0
Date: 2016-01-02 10:48 +0100
http://bitbucket.org/pypy/pypy/changeset/6d2f6b85c6e0/
Log: added some sanity checks, s390x only fails 4 (in test_runner)
diff --git a/rpython/jit/backend/zarch/opassembler.py b/rpython/jit/backend/zarch/opassembler.py
--- a/rpython/jit/backend/zarch/opassembler.py
+++ b/rpython/jit/backend/zarch/opassembler.py
@@ -807,6 +807,7 @@
def _emit_gc_load(self, op, arglocs, regalloc):
result_loc, base_loc, ofs_loc, size_loc, sign_loc = arglocs
+ assert not ofs_loc.is_in_pool()
if ofs_loc.is_imm():
assert self._mem_offset_supported(ofs_loc.value)
src_addr = l.addr(ofs_loc.value, base_loc)
@@ -820,6 +821,7 @@
def _emit_gc_load_indexed(self, op, arglocs, regalloc):
result_loc, base_loc, index_loc, offset_loc, size_loc, sign_loc =arglocs
+ assert not offset_loc.is_in_pool()
if offset_loc.is_imm() and self._mem_offset_supported(offset_loc.value):
addr_loc = l.addr(offset_loc.value, base_loc, index_loc)
else:
@@ -834,6 +836,7 @@
def emit_gc_store(self, op, arglocs, regalloc):
(base_loc, index_loc, value_loc, size_loc) = arglocs
+ assert not index_loc.is_in_pool()
if index_loc.is_imm() and self._mem_offset_supported(index_loc.value):
addr_loc = l.addr(index_loc.value, base_loc)
else:
More information about the pypy-commit
mailing list