OSDN Git Service

tcg/ppc: Use tcg_constant_vec with tcg vec expanders
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 7 Sep 2020 23:46:21 +0000 (23:46 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 13 Jan 2021 18:39:08 +0000 (08:39 -1000)
commit44aa59a0991de4f54b318787c6175b16337f8e77
tree4a4560edecb82a4133cfc7789a97b656c064ff39
parentbe986adb35e3594b02ee0d7f1cbec96b08bb29b7
tcg/ppc: Use tcg_constant_vec with tcg vec expanders

Improve expand_vec_shi to use sign-extraction for MO_32.
This allows a single VSPLTISB instruction to load all of
the valid shift constants.

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