tcg/sparc: Improve code gen for shifted 32-bit constants
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 5 Aug 2021 01:09:15 +0000 (04:09 +0300)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 8 Feb 2022 21:59:06 +0000 (08:59 +1100)
commit684db2a0b04ff024d0a275de85982fe5892185d3
tree5524d1f1421316f918944b60c35278bebe8c698b
parent92840d06faeed2038b90d5b168c18d73ca3a44b8
tcg/sparc: Improve code gen for shifted 32-bit constants

We had code for checking for 13 and 21-bit shifted constants,
but we can do better and allow 32-bit shifted constants.
This is still 2 insns shorter than the full 64-bit sequence.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/sparc/tcg-target.c.inc