[DYNAREC] Added a test for optimized REP MOVSB to avoid optim on overlapping addresses move

This commit is contained in:
ptitSeb 2025-02-12 12:49:37 +01:00
parent c467c05112
commit fa59e748f9

View File

@ -2522,6 +2522,9 @@ uintptr_t dynarec00(dynarec_arm_t* dyn, uintptr_t addr, uintptr_t ip, int ninst,
B_NEXT(cEQ); // end of loop
SMREAD();
GETDIR(x3, 1);
SUBS_REG_LSL_IMM5(x2, xEDI, xESI, 0);
SUBS_IMM8(x2, x2, 4);
B_MARK(cCC);
MARK2;
SUBS_IMM8(x2, xECX, 4);
B_MARK(cCC);