mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 15:00:53 +02:00
Add new synthetic condition codes that do an AND as their relational operator, testing the result. This is 1 IR op for things like (A & B) == 0 ? C : D This can translate to tst A, B csel A, B, eq In the future, if A is the NZCV register and B is a supported immediate, eg (NZCV & 0x80000000) == 0 ? C : D this will be able to translate to a single instruction with the appropriate condition csel A, B, pl but that needs RA support. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>