mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 15:00:53 +02:00
AddNZCV is a new op to return the NZCV for an addition directly, which lets us skip software flag calculation in some cases. In the future it would be nice to fuse this into the Add itself as a second destination to avoid repeating the addition, but that's a very involved change and right now I'm building FEX on an old Chromebook because my M1 kernel is FUBAR. Similarly, SubNZCV returns flags for Sub. This has the extra twist of needing to invert the carry bit due to the inverted definition between arm64 and x86_64. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>