Support saturation with shift=0.
authorChristophe Lyon <christophe.lyon@st.com>
Wed, 19 Jan 2011 16:10:52 +0000 (17:10 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 26 Jan 2011 13:30:24 +0000 (14:30 +0100)
commiteec44fbd7a55db7a4b18db6e7731bd6907ad94a5
tree9af5b8dc7e79824a78271a95f34a84a03bb7eb1b
parent73b33d423514298c65eaf14d374aebeba6c76e40
Support saturation with shift=0.

This patch fixes corner-case saturations, when the target range is
zero. It merely removes the guard against (sh == 0), and makes:
__ssat(0x87654321, 1) return 0xffffffff and set the saturation flag
__usat(0x87654321, 0) return 0 and set the saturation flag

Signed-off-by: Christophe Lyon <christophe.lyon@st.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-arm/translate.c