From af378dd1116acc3bf9e3d7039fe619a3458ea297 Mon Sep 17 00:00:00 2001 From: magumagu9 Date: Thu, 18 Dec 2008 09:39:05 +0000 Subject: [PATCH] Fix/enable JIT for ps_muls0/ps_muls1. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1577 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/PowerPC/Jit64/Jit_Paired.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Source/Core/Core/Src/PowerPC/Jit64/Jit_Paired.cpp b/Source/Core/Core/Src/PowerPC/Jit64/Jit_Paired.cpp index a4b4320089..d2f7e87b59 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64/Jit_Paired.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64/Jit_Paired.cpp @@ -293,7 +293,6 @@ namespace Jit64 void ps_muls(UGeckoInstruction inst) { - Default(inst); return; #ifdef JIT_OFF_OPTIONS if(Core::g_CoreStartupParameter.bJITOff || Core::g_CoreStartupParameter.bJITPairedOff) {Default(inst); return;} // turn off from debugger @@ -312,15 +311,15 @@ namespace Jit64 case 12: // Single multiply scalar high // TODO - faster version for when regs are different - MOVAPD(XMM0, fpr.R(c)); - MOVDDUP(XMM1, fpr.R(a)); - MULPS(XMM0, R(XMM1)); + MOVAPD(XMM0, fpr.R(a)); + MOVDDUP(XMM1, fpr.R(c)); + MULPD(XMM0, R(XMM1)); MOVAPD(fpr.R(d), XMM0); break; case 13: // TODO - faster version for when regs are different - MOVAPD(XMM0, fpr.R(c)); - MOVAPD(XMM1, fpr.R(a)); + MOVAPD(XMM0, fpr.R(a)); + MOVAPD(XMM1, fpr.R(c)); SHUFPD(XMM1, R(XMM1), 3); // copy higher to lower MULPD(XMM0, R(XMM1)); MOVAPD(fpr.R(d), XMM0);