target/arm: Extend vec_reg_offset to larger sizes
commit66f2dbd783d0b6172043e3679171421b2d0bac11
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 15 Jun 2018 13:57:14 +0000 (15 14:57 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 15 Jun 2018 14:23:34 +0000 (15 15:23 +0100)
treebfb02bd8816b493536d44a057c5ec3baf4385f72
parent6d3ede5410e05c5f6221dab1daf99164fd6bf879
target/arm: Extend vec_reg_offset to larger sizes

Rearrange the arithmetic so that we are agnostic about the total size
of the vector and the size of the element.  This will allow us to index
up to the 32nd byte and with 16-byte elements.

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