Implement eqv

This commit is contained in:
CRACKbomber 2025-05-23 14:44:53 -04:00 committed by Tom
parent 5fce07aff4
commit 133e95a399

View file

@ -869,6 +869,13 @@ bool Recompiler::Recompile(
// no op
break;
case PPC_INST_EQV:
// rA = ~(rS XOR rB)
println("\t{}.u64 = ~({}.u64 ^ {}.u64);", r(insn.operands[0]), r(insn.operands[1]), r(insn.operands[2]));
if (strchr(insn.opcode->name, '.'))
println("\t{}.compare<int32_t>({}.s32, 0, {});", cr(0), r(insn.operands[0]), xer());
break;
case PPC_INST_EXTSB:
println("\t{}.s64 = {}.s8;", r(insn.operands[0]), r(insn.operands[1]));
if (strchr(insn.opcode->name, '.'))