mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
parent
126e1dfed9
commit
ac720c2a42
1 changed files with 8 additions and 2 deletions
|
|
@ -236,8 +236,14 @@ template <typename L>
|
|||
void
|
||||
MacroAssemblerMIPSShared::ma_addTestCarry(Register rd, Register rs, Register rt, L overflow)
|
||||
{
|
||||
as_addu(rd, rs, rt);
|
||||
as_sltu(SecondScratchReg, rd, rs);
|
||||
if (rd != rs) {
|
||||
as_addu(rd, rs, rt);
|
||||
as_sltu(SecondScratchReg, rd, rs);
|
||||
} else {
|
||||
ma_move(SecondScratchReg, rs);
|
||||
as_addu(rd, rs, rt);
|
||||
as_sltu(SecondScratchReg, rd, SecondScratchReg);
|
||||
}
|
||||
ma_b(SecondScratchReg, SecondScratchReg, overflow, Assembler::NonZero);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue