From dc397ca35e332770ede6899122e5d012bd92c37c Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Thu, 10 Jun 2010 20:52:47 +0200 Subject: [PATCH] tcg-i386: fix andi r, r, 0xff Signed-off-by: Aurelien Jarno --- tcg/i386/tcg-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c index 8b902abd54..bb19a950bf 100644 --- a/tcg/i386/tcg-target.c +++ b/tcg/i386/tcg-target.c @@ -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; } -- 2.11.4.GIT