Re: [PATCH v3] tcg/optimize: optimize TSTNE using smask and zmask

2025-01-29 Thread Richard Henderson
On 1/29/25 05:11, Paolo Bonzini wrote: Generalize the existing optimization of "TSTNE x,sign" and "TSTNE x,-1". This can be useful for example in the i386 frontend, which will generate tests of zero-extended registers against 0x. Ironically, on x86 hosts this is a very slight pessimizati

[PATCH v3] tcg/optimize: optimize TSTNE using smask and zmask

2025-01-29 Thread Paolo Bonzini
Generalize the existing optimization of "TSTNE x,sign" and "TSTNE x,-1". This can be useful for example in the i386 frontend, which will generate tests of zero-extended registers against 0x. Ironically, on x86 hosts this is a very slight pessimization in the very case it's meant to optimiz