target/arm: Make asimd_imm_const() public
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 28 Jun 2021 13:58:20 +0000 (14:58 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Jul 2021 10:48:36 +0000 (11:48 +0100)
commitdfd66bc0f37dde37b8b2d7bad3a7075332e75fb4
treee3c363f88c3b817a2574e750ee37a5e0dcd843a6
parent303db86fc73c68d8774203d4796b9995cc122886
target/arm: Make asimd_imm_const() public

The function asimd_imm_const() in translate-neon.c is an
implementation of the pseudocode AdvSIMDExpandImm(), which we will
also want for MVE.  Move the implementation to translate.c, with a
prototype in translate.h.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210628135835.6690-4-peter.maydell@linaro.org
target/arm/translate-neon.c
target/arm/translate.c
target/arm/translate.h