mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-02 23:55:52 +00:00
Jit64: boolX - Special case xor with 0xFFFFFFFF
Ever so slightly shorter. When the condition register needs updating, we still prefer xor over not+test. Before: 45 8B F5 mov r14d,r13d 41 83 F6 FF xor r14d,0FFFFFFFFh After: 45 8B F5 mov r14d,r13d 41 F7 D6 not r14d
This commit is contained in:
parent
c9011e9d2c
commit
c3775588df
1 changed files with 6 additions and 0 deletions
|
@ -693,6 +693,12 @@ void Jit64::boolX(UGeckoInstruction inst)
|
|||
MOV(32, Ra, Rj);
|
||||
needs_test = true;
|
||||
}
|
||||
else if (imm == 0xFFFFFFFF && !inst.Rc)
|
||||
{
|
||||
if (a != j)
|
||||
MOV(32, Ra, Rj);
|
||||
NOT(32, Ra);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (a != j)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue