crXXX: Remove unnecessary CRBA == CRBD constraint for crclr and crset

This commit is contained in:
MerryMage 2018-12-21 11:03:03 +00:00
parent 3fa81f39fb
commit 07c146e7e2

View File

@ -553,14 +553,14 @@ void Jit64::crXXX(UGeckoInstruction inst)
DEBUG_ASSERT_MSG(DYNA_REC, inst.OPCD == 19, "Invalid crXXX"); DEBUG_ASSERT_MSG(DYNA_REC, inst.OPCD == 19, "Invalid crXXX");
// Special case: crclr // Special case: crclr
if (inst.CRBA == inst.CRBB && inst.CRBA == inst.CRBD && inst.SUBOP10 == 193) if (inst.CRBA == inst.CRBB && inst.SUBOP10 == 193)
{ {
ClearCRFieldBit(inst.CRBD >> 2, 3 - (inst.CRBD & 3)); ClearCRFieldBit(inst.CRBD >> 2, 3 - (inst.CRBD & 3));
return; return;
} }
// Special case: crset // Special case: crset
if (inst.CRBA == inst.CRBB && inst.CRBA == inst.CRBD && inst.SUBOP10 == 289) if (inst.CRBA == inst.CRBB && inst.SUBOP10 == 289)
{ {
SetCRFieldBit(inst.CRBD >> 2, 3 - (inst.CRBD & 3)); SetCRFieldBit(inst.CRBD >> 2, 3 - (inst.CRBD & 3));
return; return;