зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1624091 - [MIPS] Fix the wrong implementation of cmp32Load32. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D67731 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
a416d8ed45
Коммит
95c84dbacd
|
@ -852,16 +852,16 @@ void MacroAssembler::cmp32Move32(Condition cond, Register lhs,
|
|||
void MacroAssembler::cmp32Load32(Condition cond, Register lhs,
|
||||
const Address& rhs, const Address& src,
|
||||
Register dest) {
|
||||
Label skip;
|
||||
branch32(cond, rhs, lhs, &skip);
|
||||
load32(src, dest);
|
||||
bind(&skip);
|
||||
ScratchRegisterScope scratch(*this);
|
||||
MOZ_ASSERT(lhs != scratch && dest != scratch);
|
||||
load32(rhs, scratch);
|
||||
cmp32Load32(cond, lhs, scratch, src, dest);
|
||||
}
|
||||
|
||||
void MacroAssembler::cmp32Load32(Condition cond, Register lhs, Register rhs,
|
||||
const Address& src, Register dest) {
|
||||
Label skip;
|
||||
branch32(cond, rhs, lhs, &skip);
|
||||
branch32(Assembler::InvertCondition(cond), lhs, rhs, &skip);
|
||||
load32(src, dest);
|
||||
bind(&skip);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче