[pypy-commit] pypy default: Fix: it's "more correct" to not generate a REX.W prefix which has no meaning for this operation, but we need a forced REX.NW

arigo noreply at buildbot.pypy.org
Sun Sep 16 21:29:39 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r57362:ceefbc9688ac
Date: 2012-09-16 21:29 +0200
http://bitbucket.org/pypy/pypy/changeset/ceefbc9688ac/

Log:	Fix: it's "more correct" to not generate a REX.W prefix which has no
	meaning for this operation, but we need a forced REX.NW prefix
	because of the 1-byte register argument.

diff --git a/pypy/jit/backend/x86/rx86.py b/pypy/jit/backend/x86/rx86.py
--- a/pypy/jit/backend/x86/rx86.py
+++ b/pypy/jit/backend/x86/rx86.py
@@ -576,7 +576,7 @@
     J_il8 = insn(immediate(1, 'o'), '\x70', immediate(2, 'b'))
     J_il = insn('\x0F', immediate(1,'o'), '\x80', relative(2))
 
-    SET_ir = insn(rex_w, '\x0F', immediate(1,'o'),'\x90', byte_register(2), '\xC0')
+    SET_ir = insn(rex_fw, '\x0F', immediate(1,'o'),'\x90', byte_register(2), '\xC0')
 
     # The 64-bit version of this, CQO, is defined in X86_64_CodeBuilder
     CDQ = insn(rex_nw, '\x99')


More information about the pypy-commit mailing list