target/i386: use TSTEQ/TSTNE to check flags
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Oct 2023 02:17:09 +0000 (04:17 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 May 2024 06:50:39 +0000 (08:50 +0200)
commit9309b53e835f5d1d7795d81399cda7ecf99321e1
treef68eb875a84ee546234196a4e8bb6ca067229efe
parent15957eb9efe2da67c796612cead95cba28ba9bda
target/i386: use TSTEQ/TSTNE to check flags

The new conditions obviously come in handy when testing individual bits
of EFLAGS, and they make it possible to remove the .mask field of
CCPrepare.

Lowering to shift+and is done by the optimizer if necessary.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/translate.c