mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-29 15:33:01 +00:00
shader/lea: Fix op_a and op_b usages
They were swapped.
This commit is contained in:
parent
796b3319e6
commit
523a709bf1
|
@ -272,8 +272,8 @@ u32 ShaderIR::DecodeArithmeticInteger(NodeBlock& bb, u32 pc) {
|
||||||
"Unhandled LEA Predicate");
|
"Unhandled LEA Predicate");
|
||||||
|
|
||||||
Node shifted_c = Operation(OperationCode::ILogicalShiftLeft, Immediate(1), std::move(op_c));
|
Node shifted_c = Operation(OperationCode::ILogicalShiftLeft, Immediate(1), std::move(op_c));
|
||||||
Node mul_bc = Operation(OperationCode::IMul, std::move(op_b), std::move(shifted_c));
|
Node mul_bc = Operation(OperationCode::IMul, std::move(op_a), std::move(shifted_c));
|
||||||
Node value = Operation(OperationCode::IAdd, std::move(op_a), std::move(mul_bc));
|
Node value = Operation(OperationCode::IAdd, std::move(op_b), std::move(mul_bc));
|
||||||
SetRegister(bb, instr.gpr0, std::move(value));
|
SetRegister(bb, instr.gpr0, std::move(value));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue