qemu/target
Paolo Bonzini 15957eb9ef 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>
2024-05-07 08:50:39 +02:00
..
alpha exec/cpu: Extract page-protection definitions to page-protection.h 2024-05-06 11:17:15 +02:00
arm Accelerator patches 2024-05-06 10:19:10 -07:00
avr accel/tcg: Access tcg_cflags with getter / setter 2024-05-06 11:21:05 +02:00
cris exec/cpu: Extract page-protection definitions to page-protection.h 2024-05-06 11:17:15 +02:00
hexagon Accelerator patches 2024-05-06 10:19:10 -07:00
hppa accel/tcg: Access tcg_cflags with getter / setter 2024-05-06 11:21:05 +02:00
i386 target/i386: use TSTEQ/TSTNE to test low bits 2024-05-07 08:50:39 +02:00
loongarch accel/tcg: Access tcg_cflags with getter / setter 2024-05-06 11:21:05 +02:00
m68k exec/cpu: Extract page-protection definitions to page-protection.h 2024-05-06 11:17:15 +02:00
microblaze accel/tcg: Access tcg_cflags with getter / setter 2024-05-06 11:21:05 +02:00
mips accel/tcg: Access tcg_cflags with getter / setter 2024-05-06 11:21:05 +02:00
openrisc accel/tcg: Access tcg_cflags with getter / setter 2024-05-06 11:21:05 +02:00
ppc Accelerator patches 2024-05-06 10:19:10 -07:00
riscv accel/tcg: Access tcg_cflags with getter / setter 2024-05-06 11:21:05 +02:00
rx accel/tcg: Access tcg_cflags with getter / setter 2024-05-06 11:21:05 +02:00
s390x exec/cpu: Extract page-protection definitions to page-protection.h 2024-05-06 11:17:15 +02:00
sh4 accel/tcg: Access tcg_cflags with getter / setter 2024-05-06 11:21:05 +02:00
sparc qemu-sparc queue 2024-05-06 10:19:56 -07:00
tricore accel/tcg: Access tcg_cflags with getter / setter 2024-05-06 11:21:05 +02:00
xtensa exec/cpu: Extract page-protection definitions to page-protection.h 2024-05-06 11:17:15 +02:00
Kconfig meson: make target endianneess available to Kconfig 2024-05-03 15:47:47 +02:00
meson.build exec: Expose 'target_page.h' API to user emulation 2024-04-26 15:28:11 +02:00