Re: [Qemu-devel] [PATCH] Support saturation with shift=0.

2011-01-26 Thread Aurelien Jarno
On Wed, Jan 19, 2011 at 05:10:52PM +0100, Christophe Lyon wrote: > > 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 0x and set the saturation flag > __usat(0x87654321, 0) re

Re: [Qemu-devel] [PATCH] Support saturation with shift=0.

2011-01-20 Thread Peter Maydell
On 20 January 2011 12:06, Christophe Lyon wrote: > On 19.01.2011 17:51, Peter Maydell wrote: >> On 19 January 2011 16:10, Christophe Lyon wrote: >>> >>> This patch fixes corner-case saturations, when the target range is >>> zero. It merely removes the guard against (sh == 0), and makes: >>> __ssa

Re: [Qemu-devel] [PATCH] Support saturation with shift=0.

2011-01-20 Thread Christophe Lyon
On 19.01.2011 17:51, Peter Maydell wrote: > On 19 January 2011 16:10, Christophe Lyon wrote: >> >> 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 0x and set the saturation

Re: [Qemu-devel] [PATCH] Support saturation with shift=0.

2011-01-19 Thread Peter Maydell
On 19 January 2011 16:10, Christophe Lyon wrote: > > 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 0x and set the saturation flag did you mean __ssat(0x87654321, 0) here?

[Qemu-devel] [PATCH] Support saturation with shift=0.

2011-01-19 Thread Christophe Lyon
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 0x and set the saturation flag __usat(0x87654321, 0) return 0 and set the saturation flag Signed-off-by: Christophe Lyon --- ta