]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
ARM64: Fix assembly of HREFK (again).
authorMike Pall <mike>
Sat, 12 Aug 2023 12:52:48 +0000 (14:52 +0200)
committerMike Pall <mike>
Sat, 12 Aug 2023 12:52:48 +0000 (14:52 +0200)
Thanks to Peter Cawley. #1026

src/lj_asm_arm64.h

index d3e4bb631111487ac2fc814c867ac7a1a72fb525..f761525f0695d0f9a5f3d3a5a331a3d5a9fc1651 100644 (file)
@@ -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)