Skip to content

MemoryOps: Drop MOPS handling into place for MemSet/MemCpy#5356

Merged
Sonicadvance1 merged 6 commits intoFEX-Emu:mainfrom
lioncash:mops
Mar 20, 2026
Merged

MemoryOps: Drop MOPS handling into place for MemSet/MemCpy#5356
Sonicadvance1 merged 6 commits intoFEX-Emu:mainfrom
lioncash:mops

Conversation

@lioncash
Copy link
Copy Markdown
Contributor

@lioncash lioncash commented Mar 10, 2026

Drops memset handling in first (and also makes some very old tests actually... test, instead of setting rcx to 0 and then doing nothing)

Comment thread FEXCore/Source/Interface/Core/JIT/MemoryOps.cpp
@lioncash lioncash force-pushed the mops branch 2 times, most recently from 9a4b5ae to 637bfd1 Compare March 10, 2026 20:00
@lioncash lioncash changed the title MemoryOps: Drop MOPS handling into place for MemSet MemoryOps: Drop MOPS handling into place for MemSet/MemCpy Mar 11, 2026
Can be further expanded to handle other optimization cases, but this
kicks it off for forward direction memsets at least.
Lets us handle potential inline memset values.

Also fixes up the STOS tests to actually ensure all values
in the verification step pass.
With the MOPS featureset dropped in, we can also accelerate memcpy paths
on hardware that supports it.
@lioncash lioncash force-pushed the mops branch 2 times, most recently from 1c32dfa to 8489b0b Compare March 19, 2026 18:06
Copy link
Copy Markdown
Member

@Sonicadvance1 Sonicadvance1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do love that there is an enormous brickhouse of code after the memcpy overlap case. It's quite funny. Once we have hardware that we care about that supports MOPS then we can benchmark and see if it matters to move a helper to the dispatcher or something in that case.

@Sonicadvance1 Sonicadvance1 merged commit 68480f6 into FEX-Emu:main Mar 20, 2026
13 checks passed
@lioncash lioncash deleted the mops branch March 20, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants