summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2013-12-09 22:35:17 +0100
committerdegasus <wickmarkus@web.de>2013-12-17 08:49:06 +0100
commit5eab3239bbd09da60d327368d7638e0a8c8006da (patch)
tree9bebd88276bb65041bf016f0f07f9b51a8d3221a /Source/Core
parent2fad2a3e88c5fbd76d897fcfed362233d3936d12 (diff)
Jit64: load second operator for double intrutions
SSE do support non-vector instructions, but they _all_ overwrite the dest register if the src location isn't a register. (wtf?) So we have to load the src into a temporay register :(
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Src/PowerPC/Jit64/Jit_FloatingPoint.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Core/Core/Src/PowerPC/Jit64/Jit_FloatingPoint.cpp b/Source/Core/Core/Src/PowerPC/Jit64/Jit_FloatingPoint.cpp
index e165ec1b55..6b15af18c6 100644
--- a/Source/Core/Core/Src/PowerPC/Jit64/Jit_FloatingPoint.cpp
+++ b/Source/Core/Core/Src/PowerPC/Jit64/Jit_FloatingPoint.cpp
@@ -19,6 +19,10 @@ void Jit64::fp_tri_op(int d, int a, int b, bool reversible, bool single, void (X
if (d == a)
{
fpr.BindToRegister(d, true);
+ if(!single)
+ {
+ fpr.BindToRegister(b, true, false);
+ }
(this->*op)(fpr.RX(d), fpr.R(b));
}
else if (d == b)
@@ -26,6 +30,10 @@ void Jit64::fp_tri_op(int d, int a, int b, bool reversible, bool single, void (X
if (reversible)
{
fpr.BindToRegister(d, true);
+ if(!single)
+ {
+ fpr.BindToRegister(a, true, false);
+ }
(this->*op)(fpr.RX(d), fpr.R(a));
}
else
@@ -40,6 +48,10 @@ void Jit64::fp_tri_op(int d, int a, int b, bool reversible, bool single, void (X
{
// Sources different from d, can use rather quick solution
fpr.BindToRegister(d, !single);
+ if(!single)
+ {
+ fpr.BindToRegister(b, true, false);
+ }
MOVSD(fpr.RX(d), fpr.R(a));
(this->*op)(fpr.RX(d), fpr.R(b));
}