mmx: Fix 64-bit param loading
authorDavid Schleef <ds@schleef.org>
Thu, 14 Oct 2010 01:11:58 +0000 (18:11 -0700)
committerDavid Schleef <ds@schleef.org>
Thu, 14 Oct 2010 01:11:58 +0000 (18:11 -0700)
orc/orcrules-mmx.c
orc/orcrules-sse.c

index 8a00523..e19f7ca 100644 (file)
@@ -45,7 +45,7 @@ mmx_rule_loadpX (OrcCompiler *compiler, void *user, OrcInstruction *insn)
           compiler->exec_reg, reg);
       orc_mmx_emit_pinsrw_memoffset (compiler, 3,
           (int)ORC_STRUCT_OFFSET(OrcExecutor,
-            params[insn->src_args[0] + (ORC_VAR_T1 - ORC_VAR_P1)]) + 1,
+            params[insn->src_args[0] + (ORC_VAR_T1 - ORC_VAR_P1)]) + 2,
           compiler->exec_reg, reg);
 #ifndef MMX
       orc_mmx_emit_pshufd (compiler, ORC_MMX_SHUF(1,0,1,0), reg, reg);
index 96bfb6c..fcd8f3d 100644 (file)
@@ -45,7 +45,7 @@ sse_rule_loadpX (OrcCompiler *compiler, void *user, OrcInstruction *insn)
           compiler->exec_reg, reg);
       orc_sse_emit_pinsrw_memoffset (compiler, 3,
           (int)ORC_STRUCT_OFFSET(OrcExecutor,
-            params[insn->src_args[0] + (ORC_VAR_T1 - ORC_VAR_P1)]) + 1,
+            params[insn->src_args[0] + (ORC_VAR_T1 - ORC_VAR_P1)]) + 2,
           compiler->exec_reg, reg);
 #ifndef MMX
       orc_sse_emit_pshufd (compiler, ORC_SSE_SHUF(1,0,1,0), reg, reg);