Revert "Jit64: use BMI1's ANDN for andcx"

This commit is contained in:
flacs 2015-08-14 18:10:07 +02:00
parent dae6fdc211
commit 9ef349181e
1 changed files with 4 additions and 17 deletions

View File

@ -676,12 +676,7 @@ void Jit64::boolX(UGeckoInstruction inst)
} }
else if (inst.SUBOP10 == 60) // andcx else if (inst.SUBOP10 == 60) // andcx
{ {
if (cpu_info.bBMI1 && (gpr.R(b).IsSimpleReg() || a == s)) if (a == b)
{
gpr.BindToRegister(b, true, false);
ANDN(32, gpr.RX(a), gpr.RX(b), gpr.R(s));
}
else if (a == b)
{ {
NOT(32, gpr.R(a)); NOT(32, gpr.R(a));
AND(32, gpr.R(a), operand); AND(32, gpr.R(a), operand);
@ -750,17 +745,9 @@ void Jit64::boolX(UGeckoInstruction inst)
} }
else if (inst.SUBOP10 == 60) // andcx else if (inst.SUBOP10 == 60) // andcx
{ {
if (cpu_info.bBMI1) MOV(32, gpr.R(a), gpr.R(b));
{ NOT(32, gpr.R(a));
gpr.BindToRegister(b, true, false); AND(32, gpr.R(a), gpr.R(s));
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 else if (inst.SUBOP10 == 444) // orx
{ {