target/arm: Create gen_gvec_[us]sra
commit631e565450c483e0622eec3d8b61d7fa41d16bca
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 13 May 2020 16:32:30 +0000 (13 09:32 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 14 May 2020 14:03:08 +0000 (14 15:03 +0100)
treeed6b882f57e34a1f277fe70d20ebc99ffd168ae5
parentc888f7e0fdcc09c86004330ab5cad62bf98cc71c
target/arm: Create gen_gvec_[us]sra

The functions eliminate duplication of the special cases for
this operation.  They match up with the GVecGen2iFn typedef.

Add out-of-line helpers.  We got away with only having inline
expanders because the neon vector size is only 16 bytes, and
we know that the inline expansion will always succeed.
When we reuse this for SVE, tcg-gvec-op may decide to use an
out-of-line helper due to longer vector lengths.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200513163245.17915-2-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.h
target/arm/translate-a64.c
target/arm/translate.c
target/arm/translate.h
target/arm/vec_helper.c