2
0
Эх сурвалжийг харах

ARM, MIPS: Fix workaround for argument GPRs vs. FPR remat.

Mike Pall 13 жил өмнө
parent
commit
1447ee6520
2 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 1 1
      src/lj_asm_arm.h
  2. 1 1
      src/lj_asm_mips.h

+ 1 - 1
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. */

+ 1 - 1
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];