Permalink
Browse files

Jit_Integer: extsXx

  • Loading branch information...
MerryMage committed Oct 15, 2018
1 parent c380764 commit b7a4296becebf0159fb1d837635a53b2c49e616b
Showing with 7 additions and 7 deletions.
  1. +7 −7 Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp
@@ -866,19 +866,19 @@ void Jit64::extsXx(UGeckoInstruction inst)
int a = inst.RA, s = inst.RS;
int size = inst.SUBOP10 == 922 ? 16 : 8;
if (gpr.R(s).IsImm())
if (gpr.IsImm(s))
{
gpr.SetImmediate32(a, (u32)(s32)(size == 16 ? (s16)gpr.R(s).Imm32() : (s8)gpr.R(s).Imm32()));
gpr.SetImmediate32(a, (u32)(s32)(size == 16 ? (s16)gpr.Imm32(s) : (s8)gpr.Imm32(s)));
}
else
{
gpr.Lock(a, s);
gpr.BindToRegister(a, a == s, true);
MOVSX(32, size, gpr.RX(a), gpr.R(s));
RCOpArg Rs = gpr.Use(s, RCMode::Read);
RCX64Reg Ra = gpr.Bind(a, RCMode::Write);
RegCache::Realize(Rs, Ra);
MOVSX(32, size, Ra, Rs);
}
if (inst.Rc)
ComputeRC(gpr.R(a));
gpr.UnlockAll();
ComputeRC(a);
}
void Jit64::subfic(UGeckoInstruction inst)

0 comments on commit b7a4296

Please sign in to comment.