]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
ARM64: Improve BC_JLOOP.
authorMike Pall <mike>
Sat, 9 Sep 2023 15:38:44 +0000 (17:38 +0200)
committerMike Pall <mike>
Sat, 9 Sep 2023 15:38:44 +0000 (17:38 +0200)
Thanks to Peter Cawley. #1070

src/vm_arm64.dasc

index 698b4210416446e29a5cbad29771982877236582..b94a9c0efc8272f427653b7260595b1c4586dbf1 100644 (file)
@@ -3816,9 +3816,8 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop)
     |.if JIT
     |  // RA = base (ignored), RC = traceno
     |  ldr CARG1, [GL, #GL_J(trace)]
-    |   mov CARG2w, #0  // Traces on ARM64 don't store the trace #, so use 0.
+    |   st_vmstate wzr  // Traces on ARM64 don't store the trace #, so use 0.
     |  ldr TRACE:RC, [CARG1, RC, lsl #3]
-    |   st_vmstate CARG2w
     |.if PAUTH
     |  ldr RA, TRACE:RC->mcauth
     |.else