]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
x64/LJ_GC64: Fix BC_UCLO check for fast-path.
authorMike Pall <mike>
Wed, 13 Apr 2016 14:10:03 +0000 (16:10 +0200)
committerMike Pall <mike>
Wed, 13 Apr 2016 14:10:03 +0000 (16:10 +0200)
Thanks to Vyacheslav Egorov.

src/vm_x64.dasc

index c7a7740bfe28e150ccac8eff08913c639b2841d0..759e30ec0b02626259555e1a22e2e505bec274fc 100644 (file)
@@ -3516,7 +3516,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop)
     |  ins_AD  // RA = level, RD = target
     |  branchPC RD                     // Do this first to free RD.
     |  mov L:RB, SAVE_L
-    |  cmp dword L:RB->openupval, 0
+    |  cmp aword L:RB->openupval, 0
     |  je >1
     |  mov L:RB->base, BASE
     |  lea CARG2, [BASE+RA*8]          // Caveat: CARG2 == BASE