Skip to content

Commit

Permalink
Merge pull request #3546 from alyssarosenzweig/flag/cleanup
Browse files Browse the repository at this point in the history
Minor cleanups around flags
  • Loading branch information
alyssarosenzweig authored Apr 2, 2024
2 parents bd0b5ec + 0a7b3ef commit 37f2b41
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 131 deletions.
10 changes: 2 additions & 8 deletions FEXCore/Source/Interface/Core/OpcodeDispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -1304,13 +1304,9 @@ friend class FEXCore::IR::PassManager;
}

OrderedNode *GetNZCV() {
if (!CachedNZCV) {
if (!CachedNZCV)
CachedNZCV = _LoadNZCV();

// We don't know what's set
PossiblySetNZCVBits = ~0;
}

return CachedNZCV;
}

Expand All @@ -1337,10 +1333,8 @@ friend class FEXCore::IR::PassManager;
}

void SetNZ_ZeroCV(unsigned SrcSize, OrderedNode *Res) {
HandleNZ00Write();
_TestNZ(IR::SizeToOpSize(SrcSize), Res, Res);
CachedNZCV = _LoadNZCV();
PossiblySetNZCVBits = (1u << 31) | (1u << 30);
NZCVDirty = false;
}

void InsertNZCV(unsigned BitOffset, OrderedNode *Value, signed FlagOffset, bool MustMask) {
Expand Down
Loading

0 comments on commit 37f2b41

Please sign in to comment.