From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 34602 invoked by alias); 1 May 2015 11:26:49 -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 34587 invoked by uid 89); 1 May 2015 11:26:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 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) (207.82.80.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 01 May 2015 11:26:47 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by uk-mta-4.uk.mimecast.lan; Fri, 01 May 2015 12:26:44 +0100 Received: from e103246vm ([10.1.2.79]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 1 May 2015 12:26:43 +0100 From: "Wilco Dijkstra" To: "'Marcus Shawcroft'" Cc: "GCC Patches" References: <000401d080f0$16a78c90$43f6a5b0$@com> In-Reply-To: Subject: RE: [PATCH][AArch64] Make aarch64_min_divisions_for_recip_mul configurable Date: Fri, 01 May 2015 11:26:00 -0000 Message-ID: <000001d08401$abe1a570$03a4f050$@com> MIME-Version: 1.0 X-MC-Unique: LtV4PYdxQGC3Gu1-MNvrsA-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2015-05/txt/msg00032.txt.bz2 > Marcus Shawcroft wrote: > On 27 April 2015 at 14:43, Wilco Dijkstra wrote: >=20 > >> static unsigned int > >> -aarch64_min_divisions_for_recip_mul (enum machine_mode mode ATTRIBUTE= _UNUSED) > >> +aarch64_min_divisions_for_recip_mul (enum machine_mode mode) > >> { > >> - return 2; > >> + if (GET_MODE_UNIT_SIZE (mode) =3D=3D 4) > >> + return aarch64_tune_params->min_div_recip_mul_sf; > >> + return aarch64_tune_params->min_div_recip_mul_df; >=20 > This should be expressed directly as mode =3D=3D SFmode (or DFmode) rather > than the indirect approach of first computing the size first. Can we never see vector types at this point? Wilco