From patchwork Fri Mar 26 16:07:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 48683 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B1BB0B7CCD for ; Sat, 27 Mar 2010 04:36:51 +1100 (EST) Received: from localhost ([127.0.0.1]:33567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvDSG-0008Ak-AY for incoming@patchwork.ozlabs.org; Fri, 26 Mar 2010 13:36:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvC5c-0004DI-NW for qemu-devel@nongnu.org; Fri, 26 Mar 2010 12:08:52 -0400 Received: from [140.186.70.92] (port=41664 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvC5U-0003f3-2V for qemu-devel@nongnu.org; Fri, 26 Mar 2010 12:08:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvC4J-0006yY-Mv for qemu-devel@nongnu.org; Fri, 26 Mar 2010 12:08:16 -0400 Received: from afflict.kos.to ([92.243.29.197]:33654) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvC4G-0006vp-11 for qemu-devel@nongnu.org; Fri, 26 Mar 2010 12:07:29 -0400 Received: by afflict.kos.to (Postfix, from userid 1000) id 3B56B265D3; Fri, 26 Mar 2010 16:07:25 +0000 (UTC) From: Riku Voipio To: qemu-devel@nongnu.org Date: Fri, 26 Mar 2010 16:07:03 +0000 Message-Id: <4373d4a0fcd82b35eed39423fbf4c7d83e2966f8.1269617187.git.riku.voipio@nokia.com> X-Mailer: git-send-email 1.6.5 In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Riku Voipio , =?UTF-8?q?Juha=20Riihim=C3=A4ki?= Subject: [Qemu-devel] [PATCH 43/48] target-arm: fix neon vq(r)dmulh.s16 instructions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Juha Riihimäki Signed-Off-By: Riku Voipio Signed-off-by: Juha Riihimäki --- target-arm/neon_helper.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/target-arm/neon_helper.c b/target-arm/neon_helper.c index 910f84a..6464317 100644 --- a/target-arm/neon_helper.c +++ b/target-arm/neon_helper.c @@ -946,8 +946,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; \