ARM64: Fix XLOAD/XSTORE with FP operand.

Thanks to Stefan Pejic.
This commit is contained in:
Mike Pall 2017-03-20 23:49:57 +01:00
parent de5568e0ea
commit 0cf78854a9

View File

@ -286,7 +286,7 @@ static void asm_fusexref(ASMState *as, A64Ins ai, Reg rd, IRRef ref,
} }
rm = ra_alloc1(as, lref, allow); rm = ra_alloc1(as, lref, allow);
rn = ra_alloc1(as, rref, rset_exclude(allow, rm)); rn = ra_alloc1(as, rref, rset_exclude(allow, rm));
emit_dnm(as, (ai^A64I_LS_R), rd, rn, rm); emit_dnm(as, (ai^A64I_LS_R), (rd & 31), rn, rm);
return; return;
} }
} else if (ir->o == IR_STRREF) { } else if (ir->o == IR_STRREF) {