From patchwork Thu Jul 21 08:17:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Clifton X-Patchwork-Id: 13898 Received: (qmail 34186 invoked by alias); 21 Jul 2016 08:17:50 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 34171 invoked by uid 89); 21 Jul 2016 08:17:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=2016-07-21 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 21 Jul 2016 08:17:47 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AA56BC05AA56 for ; Thu, 21 Jul 2016 08:17:46 +0000 (UTC) Received: from littlehelper.redhat.com (vpn1-4-21.ams2.redhat.com [10.36.4.21]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u6L8HiB1026304 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 21 Jul 2016 04:17:46 -0400 From: Nick Clifton To: gdb-patches@sourceware.org Subject: Commit: AArch64 sim: Use fsqrt for floating point square root. Date: Thu, 21 Jul 2016 09:17:44 +0100 Message-ID: <87lh0v9zh3.fsf@redhat.com> MIME-Version: 1.0 Hi Guys, I am checking in the patch below to tweak the aarch64 simulator a little bit, so that it uses the float version of the square root math library function when operating on float values. Cheers Nick sim/aarch64/ChangeLog 2016-07-21 Nick Clifton * simulator.c (fsqrts): Use fsqrt rather than sqrt. diff --git a/sim/aarch64/simulator.c b/sim/aarch64/simulator.c index 7c15e7a..45844e2 100644 --- a/sim/aarch64/simulator.c +++ b/sim/aarch64/simulator.c @@ -7754,7 +7754,7 @@ fsqrts (sim_cpu *cpu) unsigned sd = INSTR (4, 0); TRACE_DECODE (cpu, "emulated at line %d", __LINE__); - aarch64_set_FP_float (cpu, sd, sqrt (aarch64_get_FP_float (cpu, sn))); + aarch64_set_FP_float (cpu, sd, sqrtf (aarch64_get_FP_float (cpu, sn))); } /* Double square root. */