mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-10 04:03:44 +02:00
Fixes bug in SHR op
Smaller ops could have been shifting data from the larger source in to the smaller op space when it should have been zero'd
This commit is contained in:
1 parent
7a4d0fbfd3
commit
2df55d303a
1 file changed
+4
@@ -1124,6 +1124,10 @@ void OpDispatchBuilder::SHROp(OpcodeArgs) {
|
||||
else
|
||||
Src = _And(Src, _Constant(0x1F));
|
||||
|
||||
if (Size != 64) {
|
||||
Dest = _Bfe(Size, 0, Dest);
|
||||
}
|
||||
|
||||
auto ALUOp = _Lshr(Dest, Src);
|
||||
|
||||
StoreResult(Op, ALUOp, -1);
|
||||
|
||||
Reference in new issue
Block a user