[pypy-svn] r33218 - pypy/dist/pypy/translator/asm/ppcgen
mwh at codespeak.net
mwh at codespeak.net
Thu Oct 12 11:56:59 CEST 2006
Author: mwh
Date: Thu Oct 12 11:56:58 2006
New Revision: 33218
Modified:
pypy/dist/pypy/translator/asm/ppcgen/ppc_assembler.py
Log:
don't use the int subclass for registers in the implementation of two pseudo
mnemonics.
Modified: pypy/dist/pypy/translator/asm/ppcgen/ppc_assembler.py
==============================================================================
--- pypy/dist/pypy/translator/asm/ppcgen/ppc_assembler.py (original)
+++ pypy/dist/pypy/translator/asm/ppcgen/ppc_assembler.py Thu Oct 12 11:56:58 2006
@@ -743,10 +743,10 @@
class MyPPCAssembler(PPCAssembler):
def load_word(self, rD, word):
- self.addis(rD, r0, hi(word))
+ self.addis(rD, 0, hi(word))
self.ori(rD, rD, lo(word))
def load_from(self, rD, addr):
- self.addis(rD, r0, ha(addr))
+ self.addis(rD, 0, ha(addr))
self.lwz(rD, rD, lo(addr))
def b(n):
More information about the Pypy-commit
mailing list