From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89131 invoked by alias); 9 Nov 2015 16:32:00 -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 89036 invoked by uid 89); 9 Nov 2015 16:32:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 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; Mon, 09 Nov 2015 16:31:57 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-34-S8pNkO1fQAiK3uLOGSvLaw-1; Mon, 09 Nov 2015 16:31:51 +0000 Received: from localhost ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 9 Nov 2015 16:31:48 +0000 From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org,marcus.shawcroft@arm.com, richard.earnshaw@arm.com, james.greenhalgh@arm.com, richard.sandiford@arm.com Cc: marcus.shawcroft@arm.com, richard.earnshaw@arm.com, james.greenhalgh@arm.com Subject: [PATCH 6/6] Simplify aarch64_builtin_vectorized_function References: <87io5bno02.fsf@e105548-lin.cambridge.arm.com> Date: Mon, 09 Nov 2015 16:32:00 -0000 In-Reply-To: <87io5bno02.fsf@e105548-lin.cambridge.arm.com> (Richard Sandiford's message of "Mon, 09 Nov 2015 16:20:13 +0000") Message-ID: <87si4fm8wb.fsf@e105548-lin.cambridge.arm.com> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-MC-Unique: S8pNkO1fQAiK3uLOGSvLaw-1 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2015-11/txt/msg01015.txt.bz2 After the previous patches it's no longer necessary for TARGET_BUILTIN_VECTORIZED_FUNCTION to return functions that map to the vector optab of the original operation. We'll use a vector form of the internal function instead. gcc/ * config/aarch64/aarch64-builtins.c (aarch64_builtin_vectorized_function): Remove entries that map directly to optabs. diff --git a/gcc/config/aarch64/aarch64-builtins.c b/gcc/config/aarch64/aar= ch64-builtins.c index c4cda4f..2a560a9 100644 --- a/gcc/config/aarch64/aarch64-builtins.c +++ b/gcc/config/aarch64/aarch64-builtins.c @@ -1288,40 +1288,6 @@ aarch64_builtin_vectorized_function (unsigned int fn= , tree type_out, { #undef AARCH64_CHECK_BUILTIN_MODE #define AARCH64_CHECK_BUILTIN_MODE(C, N) \ - (out_mode =3D=3D N##Fmode && out_n =3D=3D C \ - && in_mode =3D=3D N##Fmode && in_n =3D=3D C) - CASE_CFN_FLOOR: - return AARCH64_FIND_FRINT_VARIANT (floor); - CASE_CFN_CEIL: - return AARCH64_FIND_FRINT_VARIANT (ceil); - CASE_CFN_TRUNC: - return AARCH64_FIND_FRINT_VARIANT (btrunc); - CASE_CFN_ROUND: - return AARCH64_FIND_FRINT_VARIANT (round); - CASE_CFN_NEARBYINT: - return AARCH64_FIND_FRINT_VARIANT (nearbyint); - CASE_CFN_SQRT: - return AARCH64_FIND_FRINT_VARIANT (sqrt); -#undef AARCH64_CHECK_BUILTIN_MODE -#define AARCH64_CHECK_BUILTIN_MODE(C, N) \ - (out_mode =3D=3D SImode && out_n =3D=3D C \ - && in_mode =3D=3D N##Imode && in_n =3D=3D C) - CASE_CFN_CLZ: - { - if (AARCH64_CHECK_BUILTIN_MODE (4, S)) - return aarch64_builtin_decls[AARCH64_SIMD_BUILTIN_UNOP_clzv4si]; - return NULL_TREE; - } - CASE_CFN_CTZ: - { - if (AARCH64_CHECK_BUILTIN_MODE (2, S)) - return aarch64_builtin_decls[AARCH64_SIMD_BUILTIN_UNOP_ctzv2si]; - else if (AARCH64_CHECK_BUILTIN_MODE (4, S)) - return aarch64_builtin_decls[AARCH64_SIMD_BUILTIN_UNOP_ctzv4si]; - return NULL_TREE; - } -#undef AARCH64_CHECK_BUILTIN_MODE -#define AARCH64_CHECK_BUILTIN_MODE(C, N) \ (out_mode =3D=3D N##Imode && out_n =3D=3D C \ && in_mode =3D=3D N##Fmode && in_n =3D=3D C) CASE_CFN_IFLOOR: