From 8540399ecb4723bff15c6be4ba7293c59456409d Mon Sep 17 00:00:00 2001 From: scribam Date: Mon, 23 Jul 2018 14:10:45 +0200 Subject: [PATCH] ppu-interpreter: improve vminfp instruction --- rpcs3/Emu/Cell/PPUInterpreter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/PPUInterpreter.cpp b/rpcs3/Emu/Cell/PPUInterpreter.cpp index 758c2b3030..8fda79db5d 100644 --- a/rpcs3/Emu/Cell/PPUInterpreter.cpp +++ b/rpcs3/Emu/Cell/PPUInterpreter.cpp @@ -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; }