Merge pull request #1105 from FioraAeterna/pssel

JIT: fix regression in ps_sel
This commit is contained in:
skidau 2014-09-18 14:55:47 +10:00
commit 74eee70fad
1 changed files with 5 additions and 4 deletions

View File

@ -43,10 +43,11 @@ void Jit64::ps_sel(UGeckoInstruction inst)
if (cpu_info.bSSE4_1)
{
PXOR(XMM0, R(XMM0));
CMPPD(XMM0, fpr.R(a), LT); // XMM0 = XMM0 >= 0 ? all 1s : all 0s
MOVAPD(XMM1, fpr.R(b));
BLENDVPD(XMM1, fpr.R(c));
MOVAPD(XMM0, fpr.R(a));
PXOR(XMM1, R(XMM1));
CMPPD(XMM0, R(XMM1), LT); // XMM0 = XMM0 < 0 ? all 1s : all 0s
MOVAPD(XMM1, fpr.R(c));
BLENDVPD(XMM1, fpr.R(b));
}
else
{