Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #450 from Tilka/fmrx
Jit64: revert fmrx revert
  • Loading branch information
Sonicadvance1 committed Jun 7, 2014
2 parents e655f1f + 2cf27e4 commit c118632
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions Source/Core/Core/PowerPC/Jit64/Jit_FloatingPoint.cpp
Expand Up @@ -210,10 +210,21 @@ void Jit64::fmrx(UGeckoInstruction inst)

int d = inst.FD;
int b = inst.FB;

if (d == b)
return;

fpr.Lock(b, d);
fpr.BindToRegister(d, true, true);
MOVSD(XMM0, fpr.R(b));
MOVSD(fpr.R(d), XMM0);

// We don't need to load d, but if it is loaded, we need to mark it as dirty.
if (fpr.IsBound(d))
fpr.BindToRegister(d);

// b needs to be in a register because "MOVSD reg, mem" sets the upper bits (64+) to zero and we don't want that.
fpr.BindToRegister(b, true, false);

MOVSD(fpr.R(d), fpr.RX(b));

fpr.UnlockAll();
}

Expand Down

0 comments on commit c118632

Please sign in to comment.