[pypy-commit] pypy ppc-jit-backend: use store/load instead of architectury specific commands
hager
noreply at buildbot.pypy.org
Mon Mar 5 17:49:19 CET 2012
Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r53236:b13771de6a9e
Date: 2012-03-05 17:48 +0100
http://bitbucket.org/pypy/pypy/changeset/b13771de6a9e/
Log: use store/load instead of architectury specific commands
diff --git a/pypy/jit/backend/ppc/helper/assembler.py b/pypy/jit/backend/ppc/helper/assembler.py
--- a/pypy/jit/backend/ppc/helper/assembler.py
+++ b/pypy/jit/backend/ppc/helper/assembler.py
@@ -80,16 +80,10 @@
""" before a call, volatile registers are saved in ENCODING AREA
"""
for i, reg in enumerate(r.VOLATILES):
- if IS_PPC_32:
- self.mc.stw(reg.value, r.SPP.value, i * WORD)
- else:
- self.mc.std(reg.value, r.SPP.value, i * WORD)
+ self.mc.store(reg.value, r.SPP.value, i * WORD)
def __exit__(self, *args):
""" after call, volatile registers have to be restored
"""
for i, reg in enumerate(r.VOLATILES):
- if IS_PPC_32:
- self.mc.lwz(reg.value, r.SPP.value, i * WORD)
- else:
- self.mc.ld(reg.value, r.SPP.value, i * WORD)
+ self.mc.load(reg.value, r.SPP.value, i * WORD)
More information about the pypy-commit
mailing list