Jit64: make use of ANDN again
This time, make sure not to use it with immediates.
This commit is contained in:
parent
5e9fe4cd13
commit
e5a2334744
|
@ -676,7 +676,11 @@ void Jit64::boolX(UGeckoInstruction inst)
|
|||
}
|
||||
else if (inst.SUBOP10 == 60) // andcx
|
||||
{
|
||||
if (a == b)
|
||||
if (cpu_info.bBMI1 && gpr.R(b).IsSimpleReg() && !gpr.R(s).IsImm())
|
||||
{
|
||||
ANDN(32, gpr.RX(a), gpr.RX(b), gpr.R(s));
|
||||
}
|
||||
else if (a == b)
|
||||
{
|
||||
NOT(32, gpr.R(a));
|
||||
AND(32, gpr.R(a), operand);
|
||||
|
@ -745,9 +749,16 @@ void Jit64::boolX(UGeckoInstruction inst)
|
|||
}
|
||||
else if (inst.SUBOP10 == 60) // andcx
|
||||
{
|
||||
MOV(32, gpr.R(a), gpr.R(b));
|
||||
NOT(32, gpr.R(a));
|
||||
AND(32, gpr.R(a), gpr.R(s));
|
||||
if (cpu_info.bBMI1 && gpr.R(b).IsSimpleReg() && !gpr.R(s).IsImm())
|
||||
{
|
||||
ANDN(32, gpr.RX(a), gpr.RX(b), gpr.R(s));
|
||||
}
|
||||
else
|
||||
{
|
||||
MOV(32, gpr.R(a), gpr.R(b));
|
||||
NOT(32, gpr.R(a));
|
||||
AND(32, gpr.R(a), gpr.R(s));
|
||||
}
|
||||
}
|
||||
else if (inst.SUBOP10 == 444) // orx
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue