[pypy-commit] pypy default: oops, unbreak the case where arg does not come in a register (TEST can't deal with it)

fijal noreply at buildbot.pypy.org
Fri Jul 20 19:52:46 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r56298:b3b44b20399e
Date: 2012-07-20 19:52 +0200
http://bitbucket.org/pypy/pypy/changeset/b3b44b20399e/

Log:	oops, unbreak the case where arg does not come in a register (TEST
	can't deal with it)

diff --git a/pypy/jit/backend/x86/regalloc.py b/pypy/jit/backend/x86/regalloc.py
--- a/pypy/jit/backend/x86/regalloc.py
+++ b/pypy/jit/backend/x86/regalloc.py
@@ -1189,7 +1189,7 @@
     consider_cast_int_to_ptr = consider_same_as
 
     def consider_int_force_ge_zero(self, op):
-        argloc = self.loc(op.getarg(0))
+        argloc = self.make_sure_var_in_reg(op.getarg(0))
         resloc = self.force_allocate_reg(op.result, [op.getarg(0)])
         self.possibly_free_var(op.getarg(0))
         self.Perform(op, [argloc], resloc)


More information about the pypy-commit mailing list