yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

Merge pull request #3749 from ReinUsesLisp/lea-imm

shader/arithmetic_integer: Fix LEA_IMM encoding
This commit is contained in:
bunnei 2020-04-24 14:30:13 -04:00 committed by GitHub
commit 7c8acb0025
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -249,8 +249,8 @@ u32 ShaderIR::DecodeArithmeticInteger(NodeBlock& bb, u32 pc) {
} }
case OpCode::Id::LEA_IMM: { case OpCode::Id::LEA_IMM: {
const bool neg = instr.lea.imm.neg != 0; const bool neg = instr.lea.imm.neg != 0;
return {Immediate(static_cast<u32>(instr.lea.imm.entry_a)), return {GetOperandAbsNegInteger(GetRegister(instr.gpr8), false, neg, true),
GetOperandAbsNegInteger(GetRegister(instr.gpr8), false, neg, true), Immediate(static_cast<u32>(instr.lea.imm.entry_a)),
Immediate(static_cast<u32>(instr.lea.imm.entry_b))}; Immediate(static_cast<u32>(instr.lea.imm.entry_b))};
} }
case OpCode::Id::LEA_RZ: { case OpCode::Id::LEA_RZ: {