]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Fix x64 code generation for A16+REX prefixed instructions.
authorMike Pall <mike>
Wed, 8 Dec 2010 00:57:50 +0000 (01:57 +0100)
committerMike Pall <mike>
Wed, 8 Dec 2010 00:57:50 +0000 (01:57 +0100)
src/lj_asm.c

index 944b9b787bb15f3694074c90cff43cbc56b9dce8..6231f134858e4c60aa214576dbf17241c8fedf6e 100644 (file)
@@ -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;
     }
   }