From 93ce12ee15abf28ef4cb24ae7e4b8a5b73d75c85 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sat, 12 Aug 2023 14:52:48 +0200 Subject: [PATCH] ARM64: Fix assembly of HREFK (again). Thanks to Peter Cawley. #1026 --- src/lj_asm_arm64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lj_asm_arm64.h b/src/lj_asm_arm64.h index d3e4bb63..f761525f 100644 --- a/src/lj_asm_arm64.h +++ b/src/lj_asm_arm64.h @@ -935,7 +935,7 @@ static void asm_hrefk(ASMState *as, IRIns *ir) emit_nm(as, A64I_CMPx, key, ra_allock(as, k, rset_exclude(allow, key))); emit_lso(as, A64I_LDRx, key, idx, kofs); if (bigofs) - emit_opk(as, A64I_ADDx, dest, node, ofs, RSET_GPR); + emit_opk(as, A64I_ADDx, dest, node, ofs, rset_exclude(RSET_GPR, node)); } static void asm_uref(ASMState *as, IRIns *ir)