mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
PPU LLVM: Fix rounding regression of FNMADDS, FNMSUBS (#8066)
* PPU LLVM: Fix rounding regression of FNMADDS, FNMSUBS
This commit is contained in:
parent
5101bc189e
commit
dbce10d0e3
1 changed files with 2 additions and 2 deletions
|
@ -3966,7 +3966,7 @@ void PPUTranslator::FNMSUBS(ppu_opcode_t op)
|
||||||
result = m_ir->CreateFSub(m_ir->CreateFMul(a, c), b);
|
result = m_ir->CreateFSub(m_ir->CreateFMul(a, c), b);
|
||||||
}
|
}
|
||||||
|
|
||||||
SetFpr(op.frd, m_ir->CreateFNeg(m_ir->CreateFPTrunc(result, GetType<f32>())));
|
SetFpr(op.frd, m_ir->CreateFPTrunc(m_ir->CreateFNeg(result), GetType<f32>()));
|
||||||
|
|
||||||
//SetFPSCR_FR(Call(GetType<bool>(), m_pure_attr, "__fmadds_get_fr", a, b, c)); // TODO ???
|
//SetFPSCR_FR(Call(GetType<bool>(), m_pure_attr, "__fmadds_get_fr", a, b, c)); // TODO ???
|
||||||
//SetFPSCR_FI(Call(GetType<bool>(), m_pure_attr, "__fmadds_get_fi", a, b, c));
|
//SetFPSCR_FI(Call(GetType<bool>(), m_pure_attr, "__fmadds_get_fi", a, b, c));
|
||||||
|
@ -3994,7 +3994,7 @@ void PPUTranslator::FNMADDS(ppu_opcode_t op)
|
||||||
result = m_ir->CreateFAdd(m_ir->CreateFMul(a, c), b);
|
result = m_ir->CreateFAdd(m_ir->CreateFMul(a, c), b);
|
||||||
}
|
}
|
||||||
|
|
||||||
SetFpr(op.frd, m_ir->CreateFNeg(m_ir->CreateFPTrunc(result, GetType<f32>())));
|
SetFpr(op.frd, m_ir->CreateFPTrunc(m_ir->CreateFNeg(result), GetType<f32>()));
|
||||||
|
|
||||||
//SetFPSCR_FR(Call(GetType<bool>(), m_pure_attr, "__fmadds_get_fr", a, b, c)); // TODO ???
|
//SetFPSCR_FR(Call(GetType<bool>(), m_pure_attr, "__fmadds_get_fr", a, b, c)); // TODO ???
|
||||||
//SetFPSCR_FI(Call(GetType<bool>(), m_pure_attr, "__fmadds_get_fi", a, b, c));
|
//SetFPSCR_FI(Call(GetType<bool>(), m_pure_attr, "__fmadds_get_fi", a, b, c));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue