aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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];