tcg: Add choose_vector_size
commitadb196cbd5cff26547bc32a208074f03f4c4a627
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 17 Feb 2018 16:30:16 +0000 (17 08:30 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 15 Mar 2018 16:55:04 +0000 (16 00:55 +0800)
treebf4cdbc4a7d11a1e6ea5cdc03a4c4c8793c5d22b
parent7f34ed4bcdfda55f978f51aadca64aa970c9f4b6
tcg: Add choose_vector_size

This unifies 5 copies of checks for supported vector size,
and in the process fixes a missing check in tcg_gen_gvec_2s.

This lead to an assertion failure for 64-bit vector multiply,
which is not available in the AVX instruction set.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tcg-op-gvec.c