MIPS soft-float: Fix code generation for HREF.

This commit is contained in:
Mike Pall 2016-03-10 17:08:55 +01:00
parent 75d046dbdd
commit 64c6da6b21

View File

@ -651,8 +651,7 @@ static void asm_href(ASMState *as, IRIns *ir, IROp merge)
rset_clear(allow, key);
if (irkey[1].o == IR_HIOP) {
if (ra_hasreg((irkey+1)->r)) {
tmpnum = (irkey+1)->r;
type = RID_TMP;
type = tmpnum = (irkey+1)->r;
tmp1 = ra_scratch(as, allow);
rset_clear(allow, tmp1);
ra_noweak(as, tmpnum);