]> git.proxmox.com Git - mirror_qemu.git/commit
tcg/i386: Simplify immediate 8-bit logical vector shifts
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 13 Mar 2024 00:28:27 +0000 (14:28 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 6 May 2024 19:55:50 +0000 (12:55 -0700)
commit2623ca6ac11dd1c15ec1c2e87aa2e7f22f0adec8
tree571f3695676d2c636d786f43731584baacac0851
parentb3ee719e6499987a635332d012f08dc80cd277e0
tcg/i386: Simplify immediate 8-bit logical vector shifts

The x86 isa does not have this operation, so we need an expansion.
Use the same algorithm that we use for expanding this vector
operation with integers: perform the shift with a wider type
and then mask the bits that must be zero.

This reduces the instruction count from 5 to 2.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/i386/tcg-target.c.inc