mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
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:
@@ -1997,6 +1997,8 @@ void Jit64::twx(UGeckoInstruction inst)
|
||||
|
||||
s32 a = inst.RA;
|
||||
|
||||
gpr.KillImmediate(a, true, false);
|
||||
|
||||
if (inst.OPCD == 3) // twi
|
||||
CMP(32, gpr.R(a), gpr.R(inst.RB));
|
||||
else // tw
|
||||
|
||||
Reference in New Issue
Block a user