PPCRec: Streamline instructions + unify code for CR updates

This commit is contained in:
Exzap 2022-12-19 00:08:10 +01:00
parent a51a8bb7d5
commit c5ef9a5a98
6 changed files with 419 additions and 671 deletions

View file

@ -35,8 +35,7 @@ void IMLInstruction::CheckRegisterUsage(IMLUsedRegisters* registersUsed) const
operation == PPCREC_IML_OP_OR ||
operation == PPCREC_IML_OP_AND ||
operation == PPCREC_IML_OP_XOR ||
operation == PPCREC_IML_OP_ADD ||
operation == PPCREC_IML_OP_ADD_CARRY ||
operation == PPCREC_IML_OP_ADD_CARRY || // r_r carry stuff is deprecated
operation == PPCREC_IML_OP_ADD_CARRY_ME ||
operation == PPCREC_IML_OP_SUB_CARRY_UPDATE_CARRY)
{
@ -68,7 +67,7 @@ void IMLInstruction::CheckRegisterUsage(IMLUsedRegisters* registersUsed) const
// operand register is read only
registersUsed->readNamedReg1 = op_r_immS32.registerIndex;
}
else if (operation == PPCREC_IML_OP_ADD ||
else if (operation == PPCREC_IML_OP_ADD || // deprecated
operation == PPCREC_IML_OP_SUB ||
operation == PPCREC_IML_OP_AND ||
operation == PPCREC_IML_OP_OR ||