Skip to contentSkip to conversation

[4420] REXB optimization cannot be done at this level

Qemu-devel Fabrice Bellard 1 participant 1 message May 10, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4420

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4420
Author:   bellard
Date:     2008-05-10 21:58:28 +0000 (Sat, 10 May 2008)

Log Message:
-----------
REXB optimization cannot be done at this level

Modified Paths:
--------------

    trunk/tcg/x86_64/tcg-target.c

Modified: trunk/tcg/x86_64/tcg-target.c
===================================================================

tcg/x86_64/tcg-target.c +1 -1
@@ -235,7 +235,7 @@
     int rex;
     rex = ((opc >> 6) & 0x8) | ((r >> 1) & 0x4) | 
         ((x >> 2) & 2) | ((rm >> 3) & 1);
-    if (rex || ((opc & P_REXB) && r >= 4)) {
+    if (rex || (opc & P_REXB)) {
         tcg_out8(s, rex | 0x40);
     }
     if (opc & P_EXT)