mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1201793 - correct scratch register scope r=nbp CLOSED TREE
This commit is contained in:
parent
2ff9f5eab9
commit
1af063ce60
@ -547,12 +547,14 @@ CodeGeneratorARM::visitDivI(LDivI* ins)
|
||||
if (mir->canTruncateRemainder()) {
|
||||
masm.ma_sdiv(lhs, rhs, output);
|
||||
} else {
|
||||
ScratchRegisterScope scratch(masm);
|
||||
masm.ma_sdiv(lhs, rhs, scratch);
|
||||
masm.ma_mul(scratch, rhs, temp);
|
||||
masm.ma_cmp(lhs, temp);
|
||||
{
|
||||
ScratchRegisterScope scratch(masm);
|
||||
masm.ma_sdiv(lhs, rhs, temp);
|
||||
masm.ma_mul(temp, rhs, scratch);
|
||||
masm.ma_cmp(lhs, scratch);
|
||||
}
|
||||
bailoutIf(Assembler::NotEqual, ins->snapshot());
|
||||
masm.ma_mov(scratch, output);
|
||||
masm.ma_mov(temp, output);
|
||||
}
|
||||
|
||||
masm.bind(&done);
|
||||
|
Loading…
Reference in New Issue
Block a user