[pypy-commit] pypy ppc-jit-backend: Use .value not as_key() to access register number in load_imm().
edelsohn
noreply at buildbot.pypy.org
Thu Jul 19 21:43:01 CEST 2012
Author: edelsohn
Branch: ppc-jit-backend
Changeset: r56237:6904af270a27
Date: 2012-07-19 15:39 -0400
http://bitbucket.org/pypy/pypy/changeset/6904af270a27/
Log: Use .value not as_key() to access register number in load_imm().
diff --git a/pypy/jit/backend/ppc/codebuilder.py b/pypy/jit/backend/ppc/codebuilder.py
--- a/pypy/jit/backend/ppc/codebuilder.py
+++ b/pypy/jit/backend/ppc/codebuilder.py
@@ -967,7 +967,7 @@
assert v == expected
def load_imm(self, rD, word):
- rD = rD.as_key()
+ rD = rD.value
if word <= 32767 and word >= -32768:
self.li(rD, word)
elif IS_PPC_32 or (word <= 2147483647 and word >= -2147483648):
More information about the pypy-commit
mailing list