mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 00:00:41 +02:00
This IR operation was limited to GPR only previously for the values getting compared. This adds support for GPRPair (and technically FPR) so that it can be used directly with GPR pairs. I say technically FPR because the IREmitter disallowed FPRs for the comparison, but this was already supported in all of the backends, we just didn't ever use it. Some minor changes to the constant prop pass to ensure that we don't try to propagate a select in to a CondJump, otherwise pair comparisons would be duplicated. This code is expecting to be able to merge a simple comparison in to a `cbnz`, which doesn't happen with GPR pairs.