mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
ppu-interpreter: improve vminfp instruction
This commit is contained in:
parent
623f1b35f6
commit
8540399ecb
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue