mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 02:29:59 -06: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:
@ -693,6 +693,12 @@ void Jit64::boolX(UGeckoInstruction inst)
|
|||||||
MOV(32, Ra, Rj);
|
MOV(32, Ra, Rj);
|
||||||
needs_test = true;
|
needs_test = true;
|
||||||
}
|
}
|
||||||
|
else if (imm == 0xFFFFFFFF && !inst.Rc)
|
||||||
|
{
|
||||||
|
if (a != j)
|
||||||
|
MOV(32, Ra, Rj);
|
||||||
|
NOT(32, Ra);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (a != j)
|
if (a != j)
|
||||||
|
Reference in New Issue
Block a user