From patchwork Fri Mar 26 16:07:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 48682 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 4CB68B6EEB for ; Sat, 27 Mar 2010 04:34:20 +1100 (EST) Received: from localhost ([127.0.0.1]:40564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvDOC-0004ak-3t for incoming@patchwork.ozlabs.org; Fri, 26 Mar 2010 13:32:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvC5Y-0004BG-JU for qemu-devel@nongnu.org; Fri, 26 Mar 2010 12:08:49 -0400 Received: from [140.186.70.92] (port=41602 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvC5K-0003dM-Gb for qemu-devel@nongnu.org; Fri, 26 Mar 2010 12:08:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvC4J-0006zL-QR for qemu-devel@nongnu.org; Fri, 26 Mar 2010 12:08:17 -0400 Received: from afflict.kos.to ([92.243.29.197]:33646) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvC4F-0006up-Pn for qemu-devel@nongnu.org; Fri, 26 Mar 2010 12:07:29 -0400 Received: by afflict.kos.to (Postfix, from userid 1000) id 7DF28265D6; Fri, 26 Mar 2010 16:07:25 +0000 (UTC) From: Riku Voipio To: qemu-devel@nongnu.org Date: Fri, 26 Mar 2010 16:07:06 +0000 Message-Id: <0e4e5d3cfce2e3c3bdf16ae84ae65216ba321094.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 46/48] target-arm: fix neon vrsqrts instruction 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/helper.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index 798e9f9..1f5f307 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -2687,8 +2687,9 @@ float32 HELPER(recps_f32)(float32 a, float32 b, CPUState *env) float32 HELPER(rsqrts_f32)(float32 a, float32 b, CPUState *env) { float_status *s = &env->vfp.fp_status; + float32 two = int32_to_float32(2, s); float32 three = int32_to_float32(3, s); - return float32_sub(three, float32_mul(a, b, s), s); + return float32_div(float32_sub(three, float32_mul(a, b, s), s), two, s); } /* NEON helpers. */