From da495696443fdee6aa3e3b630a31f89a06937a07 Mon Sep 17 00:00:00 2001 From: Zhongwei Yao Date: Wed, 15 Feb 2017 22:03:07 +0800 Subject: [PATCH] Fix error in asm_fuseahuref on ARM64 Fix wrong 'allow' in asm_fuseahuref register allocation. --- src/lj_asm_arm64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lj_asm_arm64.h b/src/lj_asm_arm64.h index 9b958bd6..0e2228bb 100644 --- a/src/lj_asm_arm64.h +++ b/src/lj_asm_arm64.h @@ -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; } }