mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix IR_BUFHDR assembly.
This commit is contained in:
parent
1b7171c339
commit
65ff33a4af
@ -1163,9 +1163,10 @@ static void asm_bufhdr(ASMState *as, IRIns *ir)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Reg tmp = ra_scratch(as, rset_exclude(RSET_GPR, sb));
|
Reg tmp = ra_scratch(as, rset_exclude(RSET_GPR, sb));
|
||||||
/* Passing ir isn't strictly correct, but it's an IRT_PGC, too. */
|
IRIns irbp;
|
||||||
emit_storeofs(as, ir, tmp, sb, offsetof(SBuf, w));
|
irbp.ot = IRT(0, IRT_PTR); /* Buffer data pointer type. */
|
||||||
emit_loadofs(as, ir, tmp, sb, offsetof(SBuf, b));
|
emit_storeofs(as, &irbp, tmp, sb, offsetof(SBuf, w));
|
||||||
|
emit_loadofs(as, &irbp, tmp, sb, offsetof(SBuf, b));
|
||||||
}
|
}
|
||||||
#if LJ_TARGET_X86ORX64
|
#if LJ_TARGET_X86ORX64
|
||||||
ra_left(as, sb, ir->op1);
|
ra_left(as, sb, ir->op1);
|
||||||
|
Loading…
Reference in New Issue
Block a user