FFI: Fix code generation for replay of sunk float fields.

This commit is contained in:
Mike Pall 2012-10-29 17:21:44 +01:00
parent 4e7fe815ed
commit b0dde5b2b1

View File

@ -1391,7 +1391,7 @@ static void asm_head_side(ASMState *as)
ra_sethint(ir->r, rs); /* Hint may be gone, set it again. */
else if (sps_scale(regsp_spill(rs))+spdelta == sps_scale(ir->s))
continue; /* Same spill slot, do nothing. */
mask = ((!LJ_SOFTFP && irt_isnum(ir->t)) ? RSET_FPR : RSET_GPR) & allow;
mask = ((!LJ_SOFTFP && irt_isfp(ir->t)) ? RSET_FPR : RSET_GPR) & allow;
if (mask == RSET_EMPTY)
lj_trace_err(as->J, LJ_TRERR_NYICOAL);
r = ra_allocref(as, i, mask);