From: Mike Pall Date: Wed, 8 Dec 2010 00:57:50 +0000 (+0100) Subject: Fix x64 code generation for A16+REX prefixed instructions. X-Git-Tag: v2.0.0-beta6~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4d95ee2da57ea2c6f2fa68700b51f8f8251b83d;p=thirdparty%2FLuaJIT.git Fix x64 code generation for A16+REX prefixed instructions. --- diff --git a/src/lj_asm.c b/src/lj_asm.c index 944b9b78..6231f134 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c @@ -155,6 +155,7 @@ static LJ_AINLINE MCode *emit_op(x86Op xo, Reg rr, Reg rb, Reg rx, if (rex != 0x40) { rex |= (rr >> 16); if (n == -4) { *p = (MCode)rex; rex = (MCode)(xo >> 8); } + else if ((xo & 0xffffff) == 0x6600fd) { *p = (MCode)rex; rex = 0x66; } *--p = (MCode)rex; } }