]> git.proxmox.com Git - mirror_qemu.git/commit
tcg/i386: use 8-bit OR or XOR for unsigned 8-bit immediates
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Dec 2023 12:05:24 +0000 (13:05 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 10 Jan 2024 21:46:35 +0000 (08:46 +1100)
commitafa37be4b4b0cd36150db7d62ab68f2673f7589a
treee39c00f5e37b4a4c20f61706ccf684b21c31581a
parent64708db302edfe57474239a51d4dad4466fac44a
tcg/i386: use 8-bit OR or XOR for unsigned 8-bit immediates

In the case where OR or XOR has an 8-bit immediate between 128 and 255,
we can operate on a low-byte register and shorten the output by two or
three bytes (two if a prefix byte is needed for REX.B).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20231228120524.70239-1-pbonzini@redhat.com>
[rth: Incorporate into switch.]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/i386/tcg-target.c.inc