ppu-interpreter: improve vminfp instruction

This commit is contained in:
scribam 2018-07-23 14:10:45 +02:00 committed by Ivan
parent 623f1b35f6
commit 8540399ecb

View File

@ -1027,7 +1027,9 @@ bool ppu_interpreter_precise::VMHRADDSHS(ppu_thread& ppu, ppu_opcode_t op)
bool ppu_interpreter::VMINFP(ppu_thread& ppu, ppu_opcode_t op)
{
ppu.vr[op.vd].vf = _mm_min_ps(ppu.vr[op.va].vf, ppu.vr[op.vb].vf);
const auto a = ppu.vr[op.va].vf;
const auto b = ppu.vr[op.vb].vf;
ppu.vr[op.vd].vf = _mm_or_ps(_mm_min_ps(a, b), _mm_min_ps(b, a));
return true;
}