Merge pull request #497 from xezrunner/xezrunner/cfg-msb-fix

shader_recompiler: fix BranchTarget sign flip for sopp.simm
This commit is contained in:
psucien 2024-08-24 11:39:10 +02:00 committed by GitHub
commit 2c540fbecb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
namespace Shader::Gcn {
u32 GcnInst::BranchTarget(u32 pc) const {
const s16 simm = static_cast<s16>(control.sopp.simm * 4);
const s32 simm = static_cast<s32>(control.sopp.simm) * 4;
const u32 target = pc + simm + 4;
return target;
}