PageRenderTime 31ms CodeModel.GetById 7ms RepoModel.GetById 0ms app.codeStats 0ms

/rpython/jit/backend/zarch/test/test_runner.py

https://bitbucket.org/pypy/pypy/
Python | 29 lines | 23 code | 4 blank | 2 comment | 0 complexity | 37792e4ecaf29ab97401df29408450ad MD5 | raw file
Possible License(s): AGPL-3.0, BSD-3-Clause, Apache-2.0
  1. from rpython.jit.backend.test.runner_test import LLtypeBackendTest
  2. from rpython.jit.backend.zarch.runner import CPU_S390_64
  3. from rpython.jit.tool.oparser import parse
  4. from rpython.jit.metainterp.history import (AbstractFailDescr,
  5. AbstractDescr,
  6. BasicFailDescr, BasicFinalDescr,
  7. JitCellToken, TargetToken,
  8. ConstInt, ConstPtr,
  9. Const, ConstFloat)
  10. from rpython.jit.metainterp.resoperation import InputArgInt, InputArgFloat
  11. from rpython.rtyper.lltypesystem import lltype
  12. from rpython.jit.metainterp.resoperation import ResOperation, rop
  13. import py
  14. class FakeStats(object):
  15. pass
  16. class TestZARCH(LLtypeBackendTest):
  17. # for the individual tests see
  18. # ====> ../../test/runner_test.py
  19. def get_cpu(self):
  20. cpu = CPU_S390_64(rtyper=None, stats=FakeStats())
  21. cpu.setup_once()
  22. return cpu
  23. add_loop_instructions = "lg; lgr; larl; agr; cgfi; jge; j;$"
  24. bridge_loop_instructions = "lg; cgfi; jnl; lghi; " \
  25. "(lgfi|iilf);( iihf;)? (lgfi|iilf);( iihf;)? stg; basr; larl; (lgfi|iilf);( iihf;)? br;$"