mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
ARM64: Fix code generation for IR_SLOAD with typecheck + conversion.
Reported by memcorrupt.
This commit is contained in:
parent
637721d00f
commit
564147f518
@ -1201,7 +1201,7 @@ dotypecheck:
|
|||||||
tmp = ra_scratch(as, allow);
|
tmp = ra_scratch(as, allow);
|
||||||
rset_clear(allow, tmp);
|
rset_clear(allow, tmp);
|
||||||
}
|
}
|
||||||
if (ra_hasreg(dest) && irt_isnum(t) && !(ir->op2 & IRSLOAD_CONVERT))
|
if (ra_hasreg(dest) && tmp != dest)
|
||||||
emit_dn(as, A64I_FMOV_D_R, (dest & 31), tmp);
|
emit_dn(as, A64I_FMOV_D_R, (dest & 31), tmp);
|
||||||
/* Need type check, even if the load result is unused. */
|
/* Need type check, even if the load result is unused. */
|
||||||
asm_guardcc(as, irt_isnum(t) ? CC_LS : CC_NE);
|
asm_guardcc(as, irt_isnum(t) ? CC_LS : CC_NE);
|
||||||
|
Loading…
Reference in New Issue
Block a user