]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
x64/LJ_GC64: Fix XLOAD fusion. v2.1
authorMike Pall <mike>
Mon, 3 Aug 2026 13:24:25 +0000 (15:24 +0200)
committerMike Pall <mike>
Mon, 3 Aug 2026 13:24:25 +0000 (15:24 +0200)
Reported by FMiS. #1500

src/lj_asm_x86.h

index 66914834e5fd2d963943a149b70f2bd4db238a44..a2cf8fe9bdd2eaf8aff7eaf8d2e732dc6c6b129f 100644 (file)
@@ -347,8 +347,10 @@ static void asm_fusexref(ASMState *as, IRRef ref, RegSet allow)
 #else
     as->mrm.ofs = ir->i;
     as->mrm.base = RID_NONE;
 #else
     as->mrm.ofs = ir->i;
     as->mrm.base = RID_NONE;
+    return;
 #endif
 #endif
-  } else if (ir->o == IR_STRREF) {
+  }
+  if (ir->o == IR_STRREF) {
     asm_fusestrref(as, ir, allow);
   } else {
     as->mrm.ofs = 0;
     asm_fusestrref(as, ir, allow);
   } else {
     as->mrm.ofs = 0;