summary refs log tree commit diff stats
path: root/scripts/tracetool/backend/syslog.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-10-27 05:57:31 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-05-07 08:50:39 +0200
commit15957eb9efe2da67c796612cead95cba28ba9bda (patch)
treeb4eece3d4afe1f87a483b1f0a856540a85f08dd3 /scripts/tracetool/backend/syslog.py
parentb776569a53f70ab4661ed627756385b05dcaf75e (diff)
downloadfocaccia-qemu-15957eb9efe2da67c796612cead95cba28ba9bda.tar.gz
focaccia-qemu-15957eb9efe2da67c796612cead95cba28ba9bda.zip
target/i386: use TSTEQ/TSTNE to test low bits
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 target_ulong-sized values however; the optimizer would
produce a comparison against zero anyway, and it avoids shifts by 64
which are undefined behavior.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/tracetool/backend/syslog.py')
0 files changed, 0 insertions, 0 deletions