]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
ARM, MIPS: Fix workaround for argument GPRs vs. FPR remat.
authorMike Pall <mike>
Mon, 15 Oct 2012 13:47:15 +0000 (15:47 +0200)
committerMike Pall <mike>
Mon, 15 Oct 2012 13:47:15 +0000 (15:47 +0200)
src/lj_asm_arm.h
src/lj_asm_mips.h

index 8e57ad014d61131bdc771b4b486d66867b6939fb..a7465cb7c4197e5da3d23ec91d09fe5e36bec09c 100644 (file)
@@ -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. */
index d6bd8ca04ab48ce234388134fe1269c451492e24..37160c05517ee6b59bbbc4832c861406692910f1 100644 (file)
@@ -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];