aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2012-10-15 15:47:15 +0200
committerMike Pall <mike>2012-10-15 15:47:15 +0200
commit1447ee6520a09b180a0eeffa97d8a36302c61ab9 (patch)
treea33001eb623552f23bd9401c88d16ac35b684d1f /src
parent93e4040b600c993bd89910b8ac99d9242f85c702 (diff)
downloadluajit-1447ee6520a09b180a0eeffa97d8a36302c61ab9.tar.gz
luajit-1447ee6520a09b180a0eeffa97d8a36302c61ab9.tar.bz2
luajit-1447ee6520a09b180a0eeffa97d8a36302c61ab9.zip
ARM, MIPS: Fix workaround for argument GPRs vs. FPR remat.
Diffstat (limited to 'src')
-rw-r--r--src/lj_asm_arm.h2
-rw-r--r--src/lj_asm_mips.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_asm_arm.h b/src/lj_asm_arm.h
index 8e57ad01..a7465cb7 100644
--- a/src/lj_asm_arm.h
+++ b/src/lj_asm_arm.h
@@ -348,7 +348,7 @@ static void asm_gencall(ASMState *as, const CCallInfo *ci, IRRef *args)
348 emit_call(as, (void *)ci->func); 348 emit_call(as, (void *)ci->func);
349#if !LJ_SOFTFP 349#if !LJ_SOFTFP
350 for (gpr = REGARG_FIRSTGPR; gpr <= REGARG_LASTGPR; gpr++) 350 for (gpr = REGARG_FIRSTGPR; gpr <= REGARG_LASTGPR; gpr++)
351 as->cost[gpr] = REGCOST(~0u, 0u); 351 as->cost[gpr] = REGCOST(~0u, ASMREF_L);
352 gpr = REGARG_FIRSTGPR; 352 gpr = REGARG_FIRSTGPR;
353#endif 353#endif
354 for (n = 0; n < nargs; n++) { /* Setup args. */ 354 for (n = 0; n < nargs; n++) { /* Setup args. */
diff --git a/src/lj_asm_mips.h b/src/lj_asm_mips.h
index d6bd8ca0..37160c05 100644
--- a/src/lj_asm_mips.h
+++ b/src/lj_asm_mips.h
@@ -231,7 +231,7 @@ static void asm_gencall(ASMState *as, const CCallInfo *ci, IRRef *args)
231 if ((void *)ci->func) 231 if ((void *)ci->func)
232 emit_call(as, (void *)ci->func); 232 emit_call(as, (void *)ci->func);
233 for (gpr = REGARG_FIRSTGPR; gpr <= REGARG_LASTGPR; gpr++) 233 for (gpr = REGARG_FIRSTGPR; gpr <= REGARG_LASTGPR; gpr++)
234 as->cost[gpr] = REGCOST(~0u, 0u); 234 as->cost[gpr] = REGCOST(~0u, ASMREF_L);
235 gpr = REGARG_FIRSTGPR; 235 gpr = REGARG_FIRSTGPR;
236 for (n = 0; n < nargs; n++) { /* Setup args. */ 236 for (n = 0; n < nargs; n++) { /* Setup args. */
237 IRRef ref = args[n]; 237 IRRef ref = args[n];