]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
ARM64: Fix AREF/HREF/UREF fusion.
authorMike Pall <mike>
Thu, 16 Feb 2017 19:41:46 +0000 (20:41 +0100)
committerMike Pall <mike>
Thu, 16 Feb 2017 19:41:46 +0000 (20:41 +0100)
Thanks to Zhongwei Yao.

src/lj_asm_arm64.h

index 9b958bd692efafa2f7f3b0f1bc54de4bbb8615b0..0e2228bb57725a9c042611a0d38adf7ae0a4d7c6 100644 (file)
@@ -176,7 +176,7 @@ static Reg asm_fuseahuref(ASMState *as, IRRef ref, int32_t *ofsp, RegSet allow,
          }
        } else {
          Reg base = ra_alloc1(as, ir->op1, allow);
-         *ofsp = FUSE_REG|ra_alloc1(as, ir->op2, rset_exclude(RSET_GPR, base));
+         *ofsp = FUSE_REG|ra_alloc1(as, ir->op2, rset_exclude(allow, base));
          return base;
        }
       }