mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
ARM, MIPS: Fix workaround for argument GPRs vs. FPR remat.
This commit is contained in:
parent
93e4040b60
commit
1447ee6520
@ -348,7 +348,7 @@ static void asm_gencall(ASMState *as, const CCallInfo *ci, IRRef *args)
|
|||||||
emit_call(as, (void *)ci->func);
|
emit_call(as, (void *)ci->func);
|
||||||
#if !LJ_SOFTFP
|
#if !LJ_SOFTFP
|
||||||
for (gpr = REGARG_FIRSTGPR; gpr <= REGARG_LASTGPR; gpr++)
|
for (gpr = REGARG_FIRSTGPR; gpr <= REGARG_LASTGPR; gpr++)
|
||||||
as->cost[gpr] = REGCOST(~0u, 0u);
|
as->cost[gpr] = REGCOST(~0u, ASMREF_L);
|
||||||
gpr = REGARG_FIRSTGPR;
|
gpr = REGARG_FIRSTGPR;
|
||||||
#endif
|
#endif
|
||||||
for (n = 0; n < nargs; n++) { /* Setup args. */
|
for (n = 0; n < nargs; n++) { /* Setup args. */
|
||||||
|
@ -231,7 +231,7 @@ static void asm_gencall(ASMState *as, const CCallInfo *ci, IRRef *args)
|
|||||||
if ((void *)ci->func)
|
if ((void *)ci->func)
|
||||||
emit_call(as, (void *)ci->func);
|
emit_call(as, (void *)ci->func);
|
||||||
for (gpr = REGARG_FIRSTGPR; gpr <= REGARG_LASTGPR; gpr++)
|
for (gpr = REGARG_FIRSTGPR; gpr <= REGARG_LASTGPR; gpr++)
|
||||||
as->cost[gpr] = REGCOST(~0u, 0u);
|
as->cost[gpr] = REGCOST(~0u, ASMREF_L);
|
||||||
gpr = REGARG_FIRSTGPR;
|
gpr = REGARG_FIRSTGPR;
|
||||||
for (n = 0; n < nargs; n++) { /* Setup args. */
|
for (n = 0; n < nargs; n++) { /* Setup args. */
|
||||||
IRRef ref = args[n];
|
IRRef ref = args[n];
|
||||||
|
Loading…
Reference in New Issue
Block a user