mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
ARM64: Fix assembly of HREFK.
Reported by caohongqing. #1026 Fix contributed by Peter Cawley.
This commit is contained in:
parent
bd55d3023f
commit
8fbd576fb9
@ -909,7 +909,7 @@ static void asm_hrefk(ASMState *as, IRIns *ir)
|
|||||||
IRIns *irkey = IR(kslot->op1);
|
IRIns *irkey = IR(kslot->op1);
|
||||||
int32_t ofs = (int32_t)(kslot->op2 * sizeof(Node));
|
int32_t ofs = (int32_t)(kslot->op2 * sizeof(Node));
|
||||||
int32_t kofs = ofs + (int32_t)offsetof(Node, key);
|
int32_t kofs = ofs + (int32_t)offsetof(Node, key);
|
||||||
int bigofs = !emit_checkofs(A64I_LDRx, ofs);
|
int bigofs = !emit_checkofs(A64I_LDRx, kofs);
|
||||||
Reg dest = (ra_used(ir) || bigofs) ? ra_dest(as, ir, RSET_GPR) : RID_NONE;
|
Reg dest = (ra_used(ir) || bigofs) ? ra_dest(as, ir, RSET_GPR) : RID_NONE;
|
||||||
Reg node = ra_alloc1(as, ir->op1, RSET_GPR);
|
Reg node = ra_alloc1(as, ir->op1, RSET_GPR);
|
||||||
Reg key, idx = node;
|
Reg key, idx = node;
|
||||||
|
Loading…
Reference in New Issue
Block a user