ARM64: Fix AREF/HREF/UREF fusion.

Thanks to Zhongwei Yao.
This commit is contained in:
Mike Pall 2017-02-16 20:41:46 +01:00
parent bd7e42e574
commit 5aa0201374

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