From: Mike Pall Date: Tue, 25 Oct 2011 19:14:01 +0000 (+0200) Subject: x64: Fix code generation for BSWAP. X-Git-Tag: v2.0.0-beta9~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17cb366fc9e1cd07bfd091a6bfa8dd370aa573a4;p=thirdparty%2FLuaJIT.git x64: Fix code generation for BSWAP. --- diff --git a/src/lj_asm_x86.h b/src/lj_asm_x86.h index 2edfe6e6..154ca890 100644 --- a/src/lj_asm_x86.h +++ b/src/lj_asm_x86.h @@ -1849,7 +1849,7 @@ static void asm_bitswap(ASMState *as, IRIns *ir) { Reg dest = ra_dest(as, ir, RSET_GPR); as->mcp = emit_op(XO_BSWAP + ((dest&7) << 24), - REX_64IR(ir, dest), 0, 0, as->mcp, 1); + REX_64IR(ir, 0), dest, 0, as->mcp, 1); ra_left(as, dest, ir->op1); }