]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386: extend cc_* when using them to compute flags
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 21 Oct 2023 07:35:58 +0000 (09:35 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 May 2024 06:51:53 +0000 (08:51 +0200)
commitbccb0c138e5138c86169216bce280b1ebde44e1b
tree8b11049f52e7b51b8b3c3764eaa38daff05e110e
parentdd17322be7c6aa07ba792d661f1920c717ad5c94
target/i386: extend cc_* when using them to compute flags

Instead of using s->tmp0 or s->tmp4 as the result, just extend the cc_*
registers in place.  It is harmless and, if multiple setcc instructions
are used, the optimizer will be able to remove the redundant ones.

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