target/i386: cc_op is not dynamic in gen_jcc1
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Apr 2024 10:29:52 +0000 (12:29 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 May 2024 06:51:17 +0000 (08:51 +0200)
commit64ddadc6bb80376da2a818b38ae6a51fe1b7f5f2
treef5b4935c2bea9814da7ca212dbb044f43a1f160b
parente995f3f9442ce0cb869737ce100c3ebbba651809
target/i386: cc_op is not dynamic in gen_jcc1

Resetting cc_op to CC_OP_DYNAMIC should be done at control flow junctions,
which is not the case here.  This translation block is ending and the
only effect of calling set_cc_op() would be a discard of s->cc_srcT.
This discard is useless (it's a temporary, not a global) and in fact
prevents gen_prepare_cc from returning s->cc_srcT.

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