target/arm: Correct VMOV_imm_dp handling of short vectors
commit89a11ff756410aecb87d2c774df6e45dbf4105c1
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 4 Jul 2019 16:14:44 +0000 (4 17:14 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 4 Jul 2019 16:25:30 +0000 (4 17:25 +0100)
treeeb9d22fab4d2b8948668cc95c9e836633760e5b0
parent5529de1e5512c05276825fa8b922147663fd6eac
target/arm: Correct VMOV_imm_dp handling of short vectors

Coverity points out (CID 1402195) that the loop in trans_VMOV_imm_dp()
that iterates over the destination registers in a short-vector VMOV
accidentally throws away the returned updated register number
from vfp_advance_dreg(). Add the missing assignment. (We got this
correct in trans_VMOV_imm_sp().)

Fixes: 18cf951af9a27ae573a
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190702105115.9465-1-peter.maydell@linaro.org
target/arm/translate-vfp.inc.c