Fix error in asm_fuseahuref on ARM64

Fix wrong 'allow' in asm_fuseahuref register allocation.
This commit is contained in:
Zhongwei Yao 2017-02-15 22:03:07 +08:00
parent bd7e42e574
commit da49569644

View File

@ -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;
} }
} }