Author: hager <[email protected]>
Branch: ppc-jit-backend
Changeset: r50028:425b44c65d66
Date: 2011-11-30 21:12 +0100
http://bitbucket.org/pypy/pypy/changeset/425b44c65d66/
Log: use force index field as scratch field
diff --git a/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
b/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
--- a/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
+++ b/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
@@ -916,7 +916,8 @@
assert 0, "not implemented yet"
# XXX this code has to be verified
assert not self.stack_in_use
- self.regalloc_mov(loc, r.r0)
+ target = StackLocation(0) # write to force index field
+ self.regalloc_mov(loc, target)
self.stack_in_use = True
elif loc.is_reg():
self.mc.addi(r.SP.value, r.SP.value, -WORD) # decrease stack
pointer
@@ -940,7 +941,8 @@
assert 0, "not implemented yet"
# XXX this code has to be verified
assert self.stack_in_use
- self.regalloc_mov(r.r0, loc)
+ from_loc = StackLocation(0)
+ self.regalloc_mov(from_loc, loc)
self.stack_in_use = False
elif loc.is_reg():
# pop value
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit