Skip to content

Commit c2d277c

Browse files
committed
Jit64: Avoid passing immediate to non-immediate parameter
Call `UseNoImm` instead of `Use` on parameter `a` of `MultiplyImmediate` since `Ra` gets passed to `IMUL` which asserts that parameter is not an immediate.
1 parent df3c68b commit c2d277c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ void Jit64::subfx(UGeckoInstruction inst)
11721172

11731173
void Jit64::MultiplyImmediate(u32 imm, int a, int d, bool overflow)
11741174
{
1175-
RCOpArg Ra = gpr.Use(a, RCMode::Read);
1175+
RCOpArg Ra = gpr.UseNoImm(a, RCMode::Read);
11761176
RCX64Reg Rd = gpr.Bind(d, RCMode::Write);
11771177
RegCache::Realize(Ra, Rd);
11781178

0 commit comments

Comments
 (0)