target-arm: Don't overflow when calculating value for signed VABAL
commit4d9ad7f793605abd9806fc932b3e04e028894565
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 11 Apr 2011 15:32:08 +0000 (11 16:32 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 13 Apr 2011 18:47:50 +0000 (13 20:47 +0200)
tree10fa50f207f76cd1251101891e207b79ef80a7e5
parentcc9453f457888bdd3ab7b37988adbfc4712fa125
target-arm: Don't overflow when calculating value for signed VABAL

In the VABAL instruction we take the absolute difference of two
values of size x and store it in a result of size 2x. This means
we have to be careful to calculate the absolute difference using
a wide enough type that we don't accidentally overflow.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-arm/neon_helper.c