target-arm: Fix GE bits for v6media signed modulo arithmetic
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 10 Mar 2011 18:51:49 +0000 (18:51 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 22 Mar 2011 06:52:36 +0000 (07:52 +0100)
commitdb6e2e65adddfcdc3f81026df7fd490e13813e8a
treec3dea200c8c775ed04a122183450909a6c62cc46
parent2a0308c54f8afb606d4185d59d502823be3c307b
target-arm: Fix GE bits for v6media signed modulo arithmetic

Fix the signed modulo arithmetic helpers for the v6media
instructions (SADD8, SSUB8, SADD16, SSUB16, SASX, SSAX) to set
the GE bits correctly (based on the result of the add or subtract
before it is truncated to 16 bits, not after).

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