Received: from [140.186.70.92] (port=49861 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjBdT-0003zL-PE for qemu-devel@nongnu.org; Sat, 29 Jan 2011 09:18:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PjBdS-00077S-Kr for qemu-devel@nongnu.org; Sat, 29 Jan 2011 09:18:43 -0500 Received: from hall.aurel32.net ([88.191.126.93]:54721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PjBdS-00073t-Fu for qemu-devel@nongnu.org; Sat, 29 Jan 2011 09:18:42 -0500 Date: Sat, 29 Jan 2011 15:18:25 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] target-arm: Fix Neon VQ(R)DMULH.S16 instructions Message-ID: <20110129141825.GB4213@ohm.aurel32.net> References: <1296155915-15796-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1296155915-15796-1-git-send-email-peter.maydell@linaro.org> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org, patches@linaro.org On Thu, Jan 27, 2011 at 07:18:35PM +0000, Peter Maydell wrote: > From: Juha Riihimäki > > Correct an error in the implementation of the 16 bit > forms of VQ(R)DMULH, bringing them into line with the > 32 bit implementation. > > Signed-off-by: Juha Riihimäki > Reviewed-by: Peter Maydell > --- > target-arm/neon_helper.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) Thanks, applied. > diff --git a/target-arm/neon_helper.c b/target-arm/neon_helper.c > index 20f3c16..fead152 100644 > --- a/target-arm/neon_helper.c > +++ b/target-arm/neon_helper.c > @@ -880,8 +880,9 @@ uint32_t HELPER(neon_cnt_u8)(uint32_t x) > if ((tmp ^ (tmp << 1)) & SIGNBIT) { \ > SET_QC(); \ > tmp = (tmp >> 31) ^ ~SIGNBIT; \ > + } else { \ > + tmp <<= 1; \ > } \ > - tmp <<= 1; \ > if (round) { \ > int32_t old = tmp; \ > tmp += 1 << 15; \ > -- > 1.7.1 > > > -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net