qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/4] target/i386: use TSTEQ/TSTNE to test low bits


From: Richard Henderson
Subject: Re: [PATCH 1/4] target/i386: use TSTEQ/TSTNE to test low bits
Date: Wed, 28 Feb 2024 12:28:57 -1000
User-agent: Mozilla Thunderbird

On 2/28/24 01:11, Paolo Bonzini wrote:
When testing the sign bit or equality to zero of a partial register, it
is useful to use a single TSTEQ or TSTNE operation.  It can also be used
to test the parity flag, using bit 0 of the population count.

Do not do this for 32- and 64-bit values however, to avoid
large immediates.

Signed-off-by: Paolo Bonzini<pbonzini@redhat.com>
---
  target/i386/tcg/translate.c | 28 ++++++++++++++++++++--------
  target/i386/tcg/emit.c.inc  |  5 ++---
  2 files changed, 22 insertions(+), 11 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]