Jit64: fix ForceSinglePrecisionS/P

This bug never broke anything because of how these functions are used.
Fixing it should avoid some false dependencies though.
This commit is contained in:
Tillmann Karras 2015-05-21 12:33:36 +02:00
parent a7d753922d
commit 9792976ee9

View File

@ -645,8 +645,8 @@ void EmuCodeBlock::ForceSinglePrecisionS(X64Reg output, X64Reg input)
// Most games don't need these. Zelda requires it though - some platforms get stuck without them.
if (jit->jo.accurateSinglePrecision)
{
CVTSD2SS(input, R(input));
CVTSS2SD(output, R(input));
CVTSD2SS(output, R(input));
CVTSS2SD(output, R(output));
}
else if (output != input)
{
@ -659,8 +659,8 @@ void EmuCodeBlock::ForceSinglePrecisionP(X64Reg output, X64Reg input)
// Most games don't need these. Zelda requires it though - some platforms get stuck without them.
if (jit->jo.accurateSinglePrecision)
{
CVTPD2PS(input, R(input));
CVTPS2PD(output, R(input));
CVTPD2PS(output, R(input));
CVTPS2PD(output, R(output));
}
else if (output != input)
{