瀏覽代碼

ARM64: Fix AREF/HREF/UREF fusion.

Thanks to Zhongwei Yao.
Mike Pall 8 年之前
父節點
當前提交
5aa0201374
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/lj_asm_arm64.h

+ 1 - 1
src/lj_asm_arm64.h

@@ -176,7 +176,7 @@ static Reg asm_fuseahuref(ASMState *as, IRRef ref, int32_t *ofsp, RegSet allow,
 	  }
 	  }
 	} else {
 	} else {
 	  Reg base = ra_alloc1(as, ir->op1, allow);
 	  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;
 	  return base;
 	}
 	}
       }
       }