mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-12 09:24:07 +00:00
Fix passing of constant args in FPRs on x64.
This commit is contained in:
parent
7d5a3cb5d4
commit
0d3f190d94
@ -1348,7 +1348,7 @@ static void asm_gencall(ASMState *as, const CCallInfo *ci, IRRef *args)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (r) { /* Argument is in a register. */
|
if (r) { /* Argument is in a register. */
|
||||||
if (args[n] < ASMREF_TMP1) {
|
if (r < RID_MAX_GPR && args[n] < ASMREF_TMP1) {
|
||||||
emit_loadi(as, r, ir->i);
|
emit_loadi(as, r, ir->i);
|
||||||
} else {
|
} else {
|
||||||
lua_assert(rset_test(as->freeset, r)); /* Must have been evicted. */
|
lua_assert(rset_test(as->freeset, r)); /* Must have been evicted. */
|
||||||
|
Loading…
Reference in New Issue
Block a user