diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2010-06-10 20:52:47 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-06-10 20:52:47 +0200 |
commit | dc397ca35e332770ede6899122e5d012bd92c37c (patch) | |
tree | 287e76d7129a8cf7b62305fd98571c8b2c776353 /tcg | |
parent | 447d681e8b23fec360c95131c0b037d82dce495c (diff) |
tcg-i386: fix andi r, r, 0xff
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/i386/tcg-target.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |