PabloMK7 / citra

A Nintendo 3DS Emulator
GNU General Public License v2.0
3.76k stars 637 forks source link

shader_jit_a64: Optimize conditional tests #229

Closed Wunkolo closed 3 months ago

Wunkolo commented 3 months ago

These conditional tests are a 1:1 translation from the x64 code but do not have to be. Reference-values are known at emit-time and can be embedded as an immediate into an EOR instruction rather than moved into a register. The TST instruction can be utilized to more optimally test and update the EQ/NE status flags.

Wunkolo commented 3 months ago

This introduced a regression, working on a fix now.