mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
ppu: improve fnmsubs instruction
This commit is contained in:
parent
f1e6532ec0
commit
733efc6b0d
2 changed files with 2 additions and 2 deletions
|
|
@ -3887,7 +3887,7 @@ void PPUTranslator::FNMSUBS(ppu_opcode_t op)
|
|||
const auto a = GetFpr(op.fra);
|
||||
const auto b = GetFpr(op.frb);
|
||||
const auto c = GetFpr(op.frc);
|
||||
const auto result = m_ir->CreateFPTrunc(m_ir->CreateFSub(b, m_ir->CreateFMul(a, c)), GetType<f32>());
|
||||
const auto result = m_ir->CreateFPTrunc(m_ir->CreateFNeg(m_ir->CreateFSub(m_ir->CreateFMul(a, c), b)), GetType<f32>());
|
||||
SetFpr(op.frd, result);
|
||||
|
||||
//SetFPSCR_FR(Call(GetType<bool>(), m_pure_attr, "__fmadds_get_fr", a, b, c)); // TODO ???
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue