mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-12 05:00:39 +02:00
Fixes zero register flag generation
Fixes 140976d322
Adds a unit test to ensure it keeps working.
This commit is contained in:
2 files changed
+20
-2
No files matched your search
@@ -5138,8 +5138,9 @@ void OpDispatchBuilder::ALUOpImpl(OpcodeArgs, FEXCore::IR::IROps ALUIROp, FEXCor
|
||||
Op->Dest.IsGPR() && Op->Src[SrcIdx].IsGPR() &&
|
||||
Op->Dest.Data.GPR == Op->Src[SrcIdx].Data.GPR) {
|
||||
|
||||
StoreResult(GPRClass, Op, _Constant(0), -1);
|
||||
ZeroNZCV();
|
||||
auto Result = _Constant(0);
|
||||
StoreResult(GPRClass, Op, Result, -1);
|
||||
GenerateFlags_Logical(Op, Result, Result, Result);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user