Author: Richard Plangger <planri...@gmail.com> Branch: s390x-backend Changeset: r81535:03d679053346 Date: 2016-01-04 09:06 +0100 http://bitbucket.org/pypy/pypy/changeset/03d679053346/
Log: added test_basic & test_calling_conventions, the latter already passes diff --git a/rpython/jit/backend/zarch/codebuilder.py b/rpython/jit/backend/zarch/codebuilder.py --- a/rpython/jit/backend/zarch/codebuilder.py +++ b/rpython/jit/backend/zarch/codebuilder.py @@ -211,6 +211,15 @@ def pop_std_frame(self): self.LAY(r.SP, l.addr(STD_FRAME_SIZE_IN_BYTES, r.SP)) + def get_assembler_function(self): + "NOT_RPYTHON: tests only" + from rpython.jit.backend.llsupport.asmmemmgr import AsmMemoryManager + class FakeCPU: + HAS_CODEMAP = False + asmmemmgr = AsmMemoryManager() + addr = self.materialize(FakeCPU(), []) + return rffi.cast(lltype.Ptr(lltype.FuncType([], lltype.Signed)), addr) + class OverwritingBuilder(BlockBuilderMixin, AbstractZARCHBuilder): def __init__(self, mc, start, num_insts=0): AbstractZARCHBuilder.__init__(self) diff --git a/rpython/jit/backend/zarch/test/support.py b/rpython/jit/backend/zarch/test/support.py --- a/rpython/jit/backend/zarch/test/support.py +++ b/rpython/jit/backend/zarch/test/support.py @@ -1,3 +1,5 @@ +from rpython.jit.backend.detect_cpu import getcpuclass +from rpython.jit.metainterp.test import support from rpython.rtyper.lltypesystem import lltype, rffi def run_asm(asm, return_float=False): @@ -9,3 +11,13 @@ if return_float: pass return func() + +class JitZARCHMixin(support.LLJitMixin): + type_system = 'lltype' + CPUClass = getcpuclass() + # we have to disable unroll + enable_opts = "intbounds:rewrite:virtualize:string:earlyforce:pure:heap" + basic = False + + def check_jumps(self, maxcount): + pass _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit