From: Mike Pall Date: Thu, 16 Feb 2017 19:41:46 +0000 (+0100) Subject: ARM64: Fix AREF/HREF/UREF fusion. X-Git-Tag: v2.1.0-beta3~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5aa020137459d13a8577ae2995e142c4579a9dc6;p=thirdparty%2FLuaJIT.git ARM64: Fix AREF/HREF/UREF fusion. Thanks to Zhongwei Yao. --- 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; } }