From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106047 invoked by alias); 1 May 2015 08:21:38 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 106038 invoked by uid 89); 1 May 2015 08:21:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (146.101.78.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 01 May 2015 08:21:37 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by uk-mta-11.uk.mimecast.lan; Fri, 01 May 2015 09:21:32 +0100 Received: from [10.2.207.50] ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 1 May 2015 09:21:32 +0100 Message-ID: <5543378B.2090600@arm.com> Date: Fri, 01 May 2015 08:21:00 -0000 From: Kyrill Tkachov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: GCC Patches CC: Marcus Shawcroft , Richard Earnshaw , James Greenhalgh Subject: [PATCH][AArch64] Handle FLOAT and UNSIGNED_FLOAT in rtx costs X-MC-Unique: 9Br6O9VGRmW9BGfAQktEYg-1 Content-Type: multipart/mixed; boundary="------------070304070300080806020407" X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00012.txt.bz2 This is a multi-part message in MIME format. --------------070304070300080806020407 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-length: 399 Hi all, This patch adds handling of the FLOAT and UNSIGNED_FLOAT cases in rtx costs= that map down to the scvtf and ucvtf instructions respectively. We use the fromint cost fiel= d for them. Tested on aarch64-none-elf. Ok for trunk? Thanks, Kyrill 2015-05-01 Kyrylo Tkachov * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and UNSIGNED_FLOAT. --------------070304070300080806020407 Content-Type: text/x-patch; name=aarch64-costs-float.patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="aarch64-costs-float.patch" Content-length: 714 commit 3a14409ce63cac482e48ab731cff0267f7b2ce53 Author: Kyrylo Tkachov Date: Wed Mar 11 12:04:13 2015 +0000 [AArch64] Handle FLOAT and UNSIGNED_FLOAT in rtx costs diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index d1635f4..8661896 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -6497,6 +6497,12 @@ cost_plus: *cost +=3D rtx_cost (op2, FMA, 2, speed); return true; =20 + case FLOAT: + case UNSIGNED_FLOAT: + if (speed) + *cost +=3D extra_cost->fp[mode =3D=3D DFmode].fromint; + return false; + case FLOAT_EXTEND: if (speed) *cost +=3D extra_cost->fp[mode =3D=3D DFmode].widen; --------------070304070300080806020407--