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:
Sintendo
2021-01-25 23:25:38 +01:00
parent c9011e9d2c
commit c3775588df

View File

@ -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)