mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 20:00:46 +02:00
OpcodeDispatcher: add and use NZCVSelect01 helper
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
1 parent
2030b70ff8
commit
dcef1212c6
4 files changed
+11
-9
No files matched your search
@@ -1769,9 +1769,7 @@ void OpDispatchBuilder::BZHI(OpcodeArgs) {
|
||||
auto Result = _NZCVSelect(Size, {COND_NEQ}, Src, MaskResult);
|
||||
StoreResult(GPRClass, Op, Result, OpSize::iInvalid);
|
||||
|
||||
auto Zero = _InlineConstant(0);
|
||||
auto One = _InlineConstant(1);
|
||||
auto CFInv = _NZCVSelect(OpSize::i32Bit, {COND_EQ}, One, Zero);
|
||||
auto CFInv = _NZCVSelect01({COND_EQ});
|
||||
|
||||
InvalidatePF_AF();
|
||||
SetNZ_ZeroCV(Size, Result);
|
||||
|
||||
Reference in new issue
Block a user