[pypy-svn] pypy default: Fix the encoding of TEST8: don't need rex_w.

arigo commits-noreply at bitbucket.org
Sun Jan 16 12:41:13 CET 2011

Author: Armin Rigo <arigo at tunes.org>
Changeset: r40711:bcb450cd01c3
Date: 2011-01-16 12:35 +0100

Log:	Fix the encoding of TEST8: don't need rex_w.

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
@@ -530,8 +530,8 @@
     # The 64-bit version of this, CQO, is defined in X86_64_CodeBuilder
     CDQ = insn(rex_nw, '\x99')
-    TEST8_mi = insn(rex_w, '\xF6', orbyte(0<<3), mem_reg_plus_const(1), immediate(2, 'b'))
-    TEST8_ji = insn(rex_w, '\xF6', orbyte(0<<3), '\x05', immediate(1), immediate(2, 'b'))
+    TEST8_mi = insn(rex_nw, '\xF6', orbyte(0<<3), mem_reg_plus_const(1), immediate(2, 'b'))
+    TEST8_ji = insn(rex_nw, '\xF6', orbyte(0<<3), '\x05', immediate(1), immediate(2, 'b'))
     TEST_rr = insn(rex_w, '\x85', register(2,8), register(1), '\xC0')
     # x87 instructions

More information about the Pypy-commit mailing list