mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-12 09:24:07 +00:00
x64: Fix math.random() code generation.
This commit is contained in:
parent
c01aaad890
commit
2e5c0870bc
@ -463,9 +463,8 @@ static void asm_setupresult(ASMState *as, IRIns *ir, const CCallInfo *ci)
|
||||
ra_free(as, dest);
|
||||
ra_modified(as, dest);
|
||||
emit_rr(as, XO_MOVD, dest|REX_64, RID_RET); /* Really MOVQ. */
|
||||
} else {
|
||||
emit_movtomro(as, RID_RET|REX_64, RID_ESP, ofs);
|
||||
}
|
||||
if (ofs) emit_movtomro(as, RID_RET|REX_64, RID_ESP, ofs);
|
||||
} else {
|
||||
ra_destreg(as, ir, RID_FPRET);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user