JIT64: tweak srwx/slwx BindToRegister arguments

Register B gets immediately moved into the shift register, so even if a == b
it doesn't need to be loaded.
This commit is contained in:
Fiora 2014-08-24 11:29:58 -07:00
parent 5b77617069
commit a570c6b4a4
1 changed files with 2 additions and 2 deletions

View File

@ -1861,8 +1861,8 @@ void Jit64::srwx(UGeckoInstruction inst)
// no register choice
gpr.FlushLockX(ECX);
gpr.Lock(a, b, s);
gpr.BindToRegister(a, (a == b || a == s), true);
MOV(32, R(ECX), gpr.R(b));
gpr.BindToRegister(a, a == s, true);
if (a != s)
{
MOV(32, gpr.R(a), gpr.R(s));
@ -1900,8 +1900,8 @@ void Jit64::slwx(UGeckoInstruction inst)
// no register choice
gpr.FlushLockX(ECX);
gpr.Lock(a, b, s);
gpr.BindToRegister(a, (a == b || a == s), true);
MOV(32, R(ECX), gpr.R(b));
gpr.BindToRegister(a, a == s, true);
if (a != s)
{
MOV(32, gpr.R(a), gpr.R(s));