tcg/arm: Add full [US]XT[BH] into {s}extract
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 26 Dec 2024 04:22:45 +0000 (20:22 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 17 Jan 2025 04:57:17 +0000 (20:57 -0800)
commit802ef65b5f8dccbcabb7960bee9993ec65f95ab6
tree29c9b3f27687acb9e04f8fdab8260a6f61b2f133
parent936fc0a96ed02e0d996ea58b05daf983b1cb3041
tcg/arm: Add full [US]XT[BH] into {s}extract

The armv6 uxt and sxt opcodes have a 2-bit rotate field
which supports extractions from ofs = {0,8,16,24}.
Special case ofs = 0, len <= 8 as AND.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/arm/tcg-target-has.h
tcg/arm/tcg-target.c.inc