for tw/twi instructions, force propagated constant into a register to avoid "a1 cannot be immediate" errors from the emitter

This commit is contained in:
Zhuowei Zhang 2014-09-07 01:37:18 -04:00
parent b801c7f8f1
commit b70c0ae521
1 changed files with 2 additions and 0 deletions

View File

@ -1997,6 +1997,8 @@ void Jit64::twx(UGeckoInstruction inst)
s32 a = inst.RA; s32 a = inst.RA;
gpr.KillImmediate(a, true, false);
if (inst.OPCD == 3) // twi if (inst.OPCD == 3) // twi
CMP(32, gpr.R(a), gpr.R(inst.RB)); CMP(32, gpr.R(a), gpr.R(inst.RB));
else // tw else // tw