mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-08 15:20:45 +01:00
Merge pull request #13149 from Sintendo/dcbx-msub
JitArm64_LoadStore: Small dcbx optimization
This commit is contained in:
commit
43d5f61a60
@ -817,9 +817,8 @@ void JitArm64::dcbx(UGeckoInstruction inst)
|
|||||||
STR(IndexType::Unsigned, loop_counter, PPC_REG, PPCSTATE_OFF_SPR(SPR_CTR));
|
STR(IndexType::Unsigned, loop_counter, PPC_REG, PPCSTATE_OFF_SPR(SPR_CTR));
|
||||||
|
|
||||||
// downcount -= (WA * reg_cycle_count)
|
// downcount -= (WA * reg_cycle_count)
|
||||||
MUL(WB, WA, reg_cycle_count);
|
MSUB(reg_downcount, WA, reg_cycle_count, reg_downcount);
|
||||||
// ^ Note that this cannot overflow because it's limited by (downcount/cycle_count).
|
// ^ Note that this cannot overflow because it's limited by (downcount/cycle_count).
|
||||||
SUB(reg_downcount, reg_downcount, WB);
|
|
||||||
STR(IndexType::Unsigned, reg_downcount, PPC_REG, PPCSTATE_OFF(downcount));
|
STR(IndexType::Unsigned, reg_downcount, PPC_REG, PPCSTATE_OFF(downcount));
|
||||||
|
|
||||||
SetJumpTarget(downcount_is_zero_or_negative);
|
SetJumpTarget(downcount_is_zero_or_negative);
|
||||||
|
Loading…
Reference in New Issue
Block a user