dsplle-jit abs() fix

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7553 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Marko Pusljar 2011-05-20 11:55:51 +00:00
parent 0ced20c1cf
commit f86dcf9727
1 changed files with 2 additions and 4 deletions

View File

@ -1239,12 +1239,10 @@ void DSPEmitter::abs(const UDSPInstruction opc)
get_long_acc(dreg);
// if (acc < 0) acc = 0 - acc;
CMP(64, R(RAX), Imm8(0));
FixupBranch lessThan = J_CC(CC_L);
FixupBranch GreaterThanOrEqual = J_CC(CC_GE);
NEG(64, R(RAX));
set_long_acc(dreg);
SetJumpTarget(lessThan);
// dsp_set_long_acc(dreg, acc);
set_long_acc(dreg);
SetJumpTarget(GreaterThanOrEqual);
// Update_SR_Register64(dsp_get_long_acc(dreg));
if (FlagsNeeded())
{