vsgn x86 bugfix

This commit is contained in:
Henrik Rydgard 2013-11-07 18:10:14 +01:00
parent 44c866e90c
commit c0d7c5e958

View File

@ -1398,9 +1398,9 @@ void Jit::Comp_Vsgn(MIPSOpcode op) {
}
}
XORPS(XMM0, R(XMM0));
for (int i = 0; i < n; ++i)
{
XORPS(XMM0, R(XMM0));
CMPEQSS(XMM0, fpr.V(sregs[i])); // XMM0 = s[i] == 0.0f
MOVSS(XMM1, fpr.V(sregs[i]));
// Preserve sign bit, replace rest with ones