target/i386: set CC_OP in helpers if they want CC_OP_EFLAGS
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 May 2024 21:04:28 +0000 (23:04 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 25 May 2024 11:28:01 +0000 (13:28 +0200)
commitabdcc5c8eff0879c76aeb9f16d0c13044bfecbda
treec29373e471e232eb1dc309ff5d5580172f67b299
parenta0625efd4d61a7e1e3f0435aa6a83c6330b72b9a
target/i386: set CC_OP in helpers if they want CC_OP_EFLAGS

Mark cc_op as clean and do not spill it at the end of the translation block.
Technically this is a tiny bit less efficient, but:

* it results in translations that are a tiny bit smaller

* for most of these instructions, it is not unlikely that they are close to
the end of the basic block, in which case cc_op would not be overwritten

* anyway the cost is probably dwarfed by that of computing flags.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/ops_sse.h
target/i386/tcg/emit.c.inc
target/i386/tcg/fpu_helper.c
target/i386/tcg/int_helper.c
target/i386/tcg/seg_helper.c
target/i386/tcg/translate.c