提交 dc397ca3 编写于 作者: A Aurelien Jarno

tcg-i386: fix andi r, r, 0xff

Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
上级 447d681e
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册