mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-12 13:00:41 +02:00
The "create op with wrong opcode, then change the opcode" pattern is REALLY dangerous. This does not address that. But when we start doing NZCV trickery, it will get /more/ dangerous, and so it's time to add a helper and make the convenient thing the safe(r) thing. This helper correctly saves NZCV /before/ the instruction like the real builders would. It also provides a spot for future safety asserts if someone is motivated. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>