[Recompiler::Analyze] Implement frsqrte via <cmath>

This commit is contained in:
itsmeft24 2025-03-29 11:37:45 -05:00
parent c017eb630a
commit fe28e0fffc

View file

@ -1000,6 +1000,11 @@ bool Recompiler::Recompile(
println("\t{}.f64 = sqrt({}.f64);", f(insn.operands[0]), f(insn.operands[1]));
break;
case PPC_INST_FRSQRTE:
printSetFlushMode(false);
println("\t{}.f64 = 1.0 / sqrt({}.f64);", f(insn.operands[0]), f(insn.operands[1]));
break;
case PPC_INST_FSQRTS:
printSetFlushMode(false);
println("\t{}.f64 = double(float(sqrt({}.f64)));", f(insn.operands[0]), f(insn.operands[1]));