From 1447ee6520a09b180a0eeffa97d8a36302c61ab9 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Mon, 15 Oct 2012 15:47:15 +0200 Subject: [PATCH] ARM, MIPS: Fix workaround for argument GPRs vs. FPR remat. --- src/lj_asm_arm.h | 2 +- src/lj_asm_mips.h | 2 +- 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) emit_call(as, (void *)ci->func); #if !LJ_SOFTFP for (gpr = REGARG_FIRSTGPR; gpr <= REGARG_LASTGPR; gpr++) - as->cost[gpr] = REGCOST(~0u, 0u); + as->cost[gpr] = REGCOST(~0u, ASMREF_L); gpr = REGARG_FIRSTGPR; #endif 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) if ((void *)ci->func) emit_call(as, (void *)ci->func); for (gpr = REGARG_FIRSTGPR; gpr <= REGARG_LASTGPR; gpr++) - as->cost[gpr] = REGCOST(~0u, 0u); + as->cost[gpr] = REGCOST(~0u, ASMREF_L); gpr = REGARG_FIRSTGPR; for (n = 0; n < nargs; n++) { /* Setup args. */ IRRef ref = args[n];