mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
MIPS: Fix register allocation in assembly of HREF.
Reported by Jakub Piotr Cłapa.
This commit is contained in:
parent
1811c4b0f1
commit
d3294fa63b
@ -643,9 +643,11 @@ static void asm_href(ASMState *as, IRIns *ir)
|
|||||||
if (irt_isnum(kt)) {
|
if (irt_isnum(kt)) {
|
||||||
key = ra_alloc1(as, refkey, RSET_FPR);
|
key = ra_alloc1(as, refkey, RSET_FPR);
|
||||||
tmpnum = ra_scratch(as, rset_exclude(RSET_FPR, key));
|
tmpnum = ra_scratch(as, rset_exclude(RSET_FPR, key));
|
||||||
} else if (!irt_ispri(kt)) {
|
} else {
|
||||||
|
if (!irt_ispri(kt)) {
|
||||||
key = ra_alloc1(as, refkey, allow);
|
key = ra_alloc1(as, refkey, allow);
|
||||||
rset_clear(allow, key);
|
rset_clear(allow, key);
|
||||||
|
}
|
||||||
type = ra_allock(as, irt_toitype(irkey->t), allow);
|
type = ra_allock(as, irt_toitype(irkey->t), allow);
|
||||||
rset_clear(allow, type);
|
rset_clear(allow, type);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user