Author: hager <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit