[pypy-commit] pypy ppc-jit-backend: fix same bug again ...
hager
noreply at buildbot.pypy.org
Wed Feb 8 15:12:26 CET 2012
Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r52234:796fffeedaff
Date: 2012-02-08 06:11 -0800
http://bitbucket.org/pypy/pypy/changeset/796fffeedaff/
Log: fix same bug again ...
diff --git a/pypy/jit/backend/ppc/locations.py b/pypy/jit/backend/ppc/locations.py
--- a/pypy/jit/backend/ppc/locations.py
+++ b/pypy/jit/backend/ppc/locations.py
@@ -110,4 +110,7 @@
return ImmLocation(val)
def get_spp_offset(pos):
- return -(pos + 1) * WORD
+ if pos < 0:
+ return -pos * WORD
+ else:
+ return -(pos + 1) * WORD
More information about the pypy-commit
mailing list