orcx86insn: Fix codegen
authorDavid Schleef <ds@schleef.org>
Fri, 6 May 2011 05:24:16 +0000 (22:24 -0700)
committerDavid Schleef <ds@schleef.org>
Thu, 12 May 2011 18:25:18 +0000 (11:25 -0700)
orc/orcx86insn.c

index b2a92e4..0eb223e 100644 (file)
@@ -499,7 +499,7 @@ orc_x86_insn_output_opcode (OrcCompiler *p, OrcX86Insn *xinsn)
       output_opcode (p, xinsn->opcode, xinsn->size, xinsn->src, xinsn->dest);
       break;
     case ORC_X86_INSN_TYPE_IMM32_REGM_MOV:
-      orc_x86_emit_rex (p, xinsn->size, xinsn->dest, 0, xinsn->src);
+      orc_x86_emit_rex (p, xinsn->size, 0, 0, xinsn->dest);
       *p->codeptr++ = xinsn->opcode->code + (xinsn->dest&7);
       break;
     case ORC_X86_INSN_TYPE_NONE: