mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-07 03:00:17 +02:00
OpcodeDispatcher: use real branch for rep cmps
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
1 parent
edd6becc56
commit
4f4e38ace2
1 file changed
+1
-2
@@ -3785,9 +3785,8 @@ void OpDispatchBuilder::CMPSOp(OpcodeArgs) {
|
||||
Dest_RSI = _Add(OpSize::i64Bit, Dest_RSI, PtrDir);
|
||||
StoreGPRRegister(X86State::REG_RSI, Dest_RSI);
|
||||
|
||||
OrderedNode *ZF = GetRFLAG(FEXCore::X86State::RFLAG_ZF_RAW_LOC);
|
||||
CalculateDeferredFlags();
|
||||
InternalCondJump = CondJump(ZF, {REPE ? COND_NEQ : COND_EQ});
|
||||
InternalCondJump = CondJumpNZCV({REPE ? COND_EQ : COND_NEQ});
|
||||
|
||||
// Jump back to the start if we have more work to do
|
||||
SetTrueJumpTarget(InternalCondJump, LoopStart);
|
||||
|
||||
Reference in new issue
Block a user