The TSTEQ/TSTNE operations can be useful to evaluate many conditionals. They can be used to test the sign bit or equality to zero of a partial register, as well as to check individual bits in EFLAGS.
Paolo Based-on: <20240228110641.287205-1-pbonz...@redhat.com> Paolo Bonzini (4): target/i386: use TSTEQ/TSTNE to test low bits target/i386: use TSTEQ/TSTNE to check flags target/i386: remove mask from CCPrepare tcg/optimize: optimize TSTNE using smask and zmask target/i386/tcg/translate.c | 115 ++++++++++++++++-------------------- tcg/optimize.c | 13 ++-- target/i386/tcg/emit.c.inc | 5 +- 3 files changed, 60 insertions(+), 73 deletions(-) -- 2.43.2