Bug 1918153: Use signalling instruction for branchNegPtr. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D221856
This commit is contained in:
@@ -1598,7 +1598,7 @@ void MacroAssembler::branchMulPtr(Condition cond, Register src, Register dest,
|
||||
|
||||
void MacroAssembler::branchNegPtr(Condition cond, Register reg, Label* label) {
|
||||
MOZ_ASSERT(cond == Overflow);
|
||||
negPtr(reg);
|
||||
negs64(reg);
|
||||
B(label, cond);
|
||||
}
|
||||
|
||||
|
||||
@@ -1300,6 +1300,9 @@ class MacroAssemblerCompat : public vixl::MacroAssembler {
|
||||
void negs32(Register reg) {
|
||||
Negs(ARMRegister(reg, 32), Operand(ARMRegister(reg, 32)));
|
||||
}
|
||||
void negs64(Register reg) {
|
||||
Negs(ARMRegister(reg, 64), Operand(ARMRegister(reg, 64)));
|
||||
}
|
||||
|
||||
void ret() {
|
||||
pop(lr);
|
||||
|
||||
Reference in New Issue
Block a user