]> git.proxmox.com Git - qemu.git/commitdiff
tcg-i386: fix andi r, r, 0xff
authorAurelien Jarno <aurelien@aurel32.net>
Thu, 10 Jun 2010 18:52:47 +0000 (20:52 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 10 Jun 2010 18:52:47 +0000 (20:52 +0200)
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg/i386/tcg-target.c

index 8b902abd54fbb7e5273bdff6bfd54efc540bcf16..bb19a950bf50b1516ac32975eeb0acd86f600b86 100644 (file)
@@ -679,7 +679,7 @@ static void tgen_arithi(TCGContext *s, int c, int r0,
                 rexw = 0;
             }
         }
-        if (val == 0xffu) {
+        if (val == 0xffu && (r0 < 4 || TCG_TARGET_REG_BITS == 64)) {
             tcg_out_ext8u(s, r0, r0);
             return;
         }