]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Fix MVE VSLI by 0 and VSRI by <dt>
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 13 Aug 2021 16:11:47 +0000 (17:11 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 25 Aug 2021 09:48:48 +0000 (10:48 +0100)
commitc88ff88498ea95e78d5fbd192de5123c1d88f9a8
treee0303a9ca47b3f24d7d3ec08192b2b7d162f99e9
parentaa29190826f2f061ed3ffad0a6cabb30eaf7f8f0
target/arm: Fix MVE VSLI by 0 and VSRI by <dt>

In the MVE shift-and-insert insns, we special case VSLI by 0
and VSRI by <dt>. VSRI by <dt> means "don't update the destination",
which is what we've implemented. However VSLI by 0 is "set
destination to the input", so we don't want to use the same
special-casing that we do for VSRI by <dt>.

Since the generic logic gives the right answer for a shift
by 0, just use that.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
target/arm/mve_helper.c