From patchwork Tue Apr 18 13:46:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 84867 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2870864vqo; Tue, 18 Apr 2023 06:58:41 -0700 (PDT) X-Google-Smtp-Source: AKy350alh7BhNJoBAjLrtncRf9NQRdSvuwgJZXd4v3Ik7ApZA4lbw7WPW6Ji45+GfsL+QyfP0g6T X-Received: by 2002:a17:906:f753:b0:94c:b183:bb6f with SMTP id jp19-20020a170906f75300b0094cb183bb6fmr11175858ejb.18.1681826321728; Tue, 18 Apr 2023 06:58:41 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id bp6-20020a170907918600b0094ec92514b1si10973155ejb.103.2023.04.18.06.58.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 06:58:41 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=FkLYCoWI; arc=fail (signature failed); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 511F63942000 for ; Tue, 18 Apr 2023 13:52:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 511F63942000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681825955; bh=lNwlDrnEchVi/VjVuntpFnqCFjELM1/pqTvkk7pfM/I=; h=To:CC:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=FkLYCoWIUTDrve8oHViJ+O0j5o1AK2+4xO+JGOLf9hFyyyqDaQJ3r90X7MHnTuWhk /q5nTPj74QDfwrZTGzjmIxoAZtjGUGrSVW840LqH7vM6lHusXunRRIqFKgvVCF+crZ VbHa4H4gORyNpnKVjiEYWks0wKc8WGqM5simqwg0= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2043.outbound.protection.outlook.com [40.107.21.43]) by sourceware.org (Postfix) with ESMTPS id E08773857020 for ; Tue, 18 Apr 2023 13:47:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E08773857020 Received: from AS9PR04CA0114.eurprd04.prod.outlook.com (2603:10a6:20b:531::19) by DU0PR08MB9581.eurprd08.prod.outlook.com (2603:10a6:10:44b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 13:47:43 +0000 Received: from AM7EUR03FT047.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:531:cafe::75) by AS9PR04CA0114.outlook.office365.com (2603:10a6:20b:531::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.47 via Frontend Transport; Tue, 18 Apr 2023 13:47:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT047.mail.protection.outlook.com (100.127.140.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.21 via Frontend Transport; Tue, 18 Apr 2023 13:47:43 +0000 Received: ("Tessian outbound 5154e9d36775:v136"); Tue, 18 Apr 2023 13:47:43 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: c0f302c3d0c21a90 X-CR-MTA-TID: 64aa7808 Received: from 5d1656c7b613.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 013497EC-9146-4AF9-8E63-476887850A67.1; Tue, 18 Apr 2023 13:47:32 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 5d1656c7b613.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 18 Apr 2023 13:47:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a5xR1kbK+DN4rz+Z9Kas4JGr13tOFOVYuWKkKZhOaZ3jJFr4Uws+Lx9uhCWYxEz+VtwWIc7Y/8u1FsHSZbbPfjdB6x96JG1duLz5LxIMqYcFZzlLFaERz459l/kcZ4sNkkBNZcwaMklKqVkN9YhOiiq6MSbzYMmNGZd9PZKqaNUXDJOmla7w1LAOs3nroOgXh+AJk/+PtIcm7qVsx29u4BIz1Hy7arY+mmCKu2hfNvQ8YQWxOsdEp9SrmWIMBHG8q/aSxNFnQOUwgH6nVCaRICzNz4Am7i6h5LMeN6EE0Id8XDHmWRcKy9njETGLilJWh2aQ6W9uZV7p2PPIc6Hmmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lNwlDrnEchVi/VjVuntpFnqCFjELM1/pqTvkk7pfM/I=; b=Ik34gpttQc6YDalVef7MiNpIQF7PcT+lOh7nd+uuTWiyh5i+fQ5dHykWM/EC0QzcU8XUEUJy5kh53xrlcYn6x3o8gkOPVP2G7Oe8FM3+KS8cQ3G3m45nntvxWGQeRP8bmNWQPsb3me2nl24ol37kL6ImRtp927FI4kT/q8M1IhA+UbKkpvk6BTMoCizhUOKi0meNUAdfXwER54U7IPOyB2DTE1hmDzoCUNN/TVUKG2c122cqTmvS6apkRjqHKG34eVf4lVQKmR/7c2MMlQHVcpxybaHC1dMKaXtzJew1rb3gasnbXc5DsKBp3N6hy11Scwwd4t6wejgEmflZKDA66Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none Received: from AS8PR04CA0145.eurprd04.prod.outlook.com (2603:10a6:20b:127::30) by DBAPR08MB5798.eurprd08.prod.outlook.com (2603:10a6:10:1a6::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 13:47:26 +0000 Received: from AM7EUR03FT060.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:127:cafe::4d) by AS8PR04CA0145.outlook.office365.com (2603:10a6:20b:127::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.47 via Frontend Transport; Tue, 18 Apr 2023 13:47:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by AM7EUR03FT060.mail.protection.outlook.com (100.127.140.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6319.20 via Frontend Transport; Tue, 18 Apr 2023 13:47:26 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 18 Apr 2023 13:47:24 +0000 Received: from e129018.arm.com (10.57.54.117) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Tue, 18 Apr 2023 13:47:24 +0000 To: , , , CC: Christophe Lyon Subject: [PATCH 17/22] arm: [MVE intrinsics] rework vcreateq Date: Tue, 18 Apr 2023 15:46:03 +0200 Message-ID: <20230418134608.244751-18-christophe.lyon@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230418134608.244751-1-christophe.lyon@arm.com> References: <20230418134608.244751-1-christophe.lyon@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT060:EE_|DBAPR08MB5798:EE_|AM7EUR03FT047:EE_|DU0PR08MB9581:EE_ X-MS-Office365-Filtering-Correlation-Id: f961cfc8-9d1a-4ecf-a22d-08db40137c18 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: TKT5UJvqBOY6dE47q6ruU/QWPnAFy83FAXIF+FwXdUHDq0MBzdlcXqF+P9uQpTBJDqHMw2bEpka5848uyfg8hx/KpOgUNl0YTMkaMGjyQakM/BDPFBZ43iJ1uTKIpHpPhSIJksQC81dZ1e8VY1cH3tm1og8VYt1tIRsECqdcCjOWQt/jhpnhkhMZEmM01M8oiNeg0iW2UCK4Gt6UiAPaLQlaReZC2CfK37RJVlx6Q2CMhWsyCXvS3p4zdsSgtN9b8NOl0sSYTthuCg1NmoVnN4AjP8XFSAn3nkzN5Nwna8oMULmNGbM7B4cfxLWnXmfcS4NR2orureE+eDLv9Wts+bsX2UQPD45YOATLD6971L621JEuu5Os2YepJY2oNuOZC/dFN+QQ+SjXWfj0YF7BIB7M/EcqqxlZm4V6E7QA4fVjGR3x2kAMcf9zSjQXPjMECKZ1iu81AWviHnmV76ZNiAMb3fwse/e9tNyMIprM8hb5SO8QA20PAC21fYFXFx7+bBJ1027q2+7tA6QHdpkXWMvmkJhkPCYdHLi53rVcDRoyvYOY6COi6EGFqTWtSeNQq/3ABH8hG7Gofxdf2YFDfZki+Q7+KTIKusVBuFaKnw6wBCfNKIWSG6GGMZE8sQG3cA0IKbMZ0YFyFm74GNuIvFW0IiQGN7QpUx12QoIywKFtf3Pv7vZM5nH0yFZhGZkOwhgIbG976zAQvjbUc78mKQ== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230028)(4636009)(39850400004)(346002)(376002)(396003)(136003)(451199021)(46966006)(36840700001)(36756003)(44832011)(82310400005)(2906002)(5660300002)(8936002)(8676002)(41300700001)(356005)(81166007)(40480700001)(86362001)(478600001)(110136005)(2616005)(36860700001)(26005)(1076003)(6636002)(186003)(6666004)(7696005)(336012)(4326008)(426003)(70206006)(70586007)(82740400003)(83380400001)(47076005)(316002)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR08MB5798 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT047.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: f598da4b-4ca3-4a56-bbbd-08db401371d1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lrGiLiCzzuLyGV0rjhyjEmvEzV6HtBKTVozVlpiopazHSlXUWQ2tL9XS/g7nYnXG4PkeV4SdsnOuE+Kemp/6eMI+GfU2nR/d0w5UHIWP8sOJ/4jT8YQKXznP7UZUax8qEe2IXb5+0Dq8OtGazHjIyNqPpRlKGpRpgMLhwgiMSzE4HmONO+joSQSPe4BSr4HsdH7nZEC0TsdOFafiRpLZsWeGU/IgbVTZVNk+i/vn8t/JZ5iMhJu3UNiH8g1uH/GHQ1VqDSN27ojquZB+PL8s6i4W9ofsoxc3s8ZDNuJmT01tCVGpPaLgXzLW9+RbE4P8tWnTQdDFD7SD0dqHQjAdlblJE8FCsEVHtRkDslc8mMHEXV1FtsLQYNt4RcxgYeGcaFXY+s3RVqjSG2rRi/CsTM7sisTVxCUksk6EF7U3UNpdqrJzko7Q/zLtGYusg2VsLNGDUQoETqBsT+4TjQtAjYHXEaCjMFLGj/72+jaDczbofw8L9izTcrDPRa1GG0JQISgSRIc1bzoC8Y7rHT0mNoM6/CVa15ZkxWi3P/8CtKSpzEKkCzEosjzlqsAMlQiwcXRMbiEs2k/5yImqBXpbRzyNPH1n+L40sk+4g/YxZI+289zgU/ACnfLXFEDBMY6Vxzogktck63iLitqVRmoOPGaJWEl+lSjwn1UKunC1KpV74ZhbUrwCHQuJyuj9PO2HsacxmrtGHqve2ark5an41g== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230028)(4636009)(346002)(39860400002)(136003)(376002)(396003)(451199021)(36840700001)(40470700004)(46966006)(83380400001)(336012)(426003)(82310400005)(110136005)(40480700001)(82740400003)(47076005)(2906002)(6636002)(44832011)(5660300002)(316002)(41300700001)(8676002)(70206006)(70586007)(81166007)(8936002)(478600001)(4326008)(86362001)(7696005)(36860700001)(36756003)(40460700003)(6666004)(186003)(1076003)(26005)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 13:47:43.2665 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f961cfc8-9d1a-4ecf-a22d-08db40137c18 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT047.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9581 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Christophe Lyon via Gcc-patches From: Christophe Lyon Reply-To: Christophe Lyon Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763522716803051538?= X-GMAIL-MSGID: =?utf-8?q?1763522716803051538?= Implement vcreateq using the new MVE builtins framework. 2022-09-08 Christophe Lyon gcc/ * config/arm/arm-mve-builtins-base.cc (FUNCTION_WITHOUT_M_N): New. (vcreateq): New. * config/arm/arm-mve-builtins-base.def (vcreateq): New. * config/arm/arm-mve-builtins-base.h (vcreateq): New. * config/arm/arm_mve.h (vcreateq_f16): Remove. (vcreateq_f32): Remove. (vcreateq_u8): Remove. (vcreateq_u16): Remove. (vcreateq_u32): Remove. (vcreateq_u64): Remove. (vcreateq_s8): Remove. (vcreateq_s16): Remove. (vcreateq_s32): Remove. (vcreateq_s64): Remove. (__arm_vcreateq_u8): Remove. (__arm_vcreateq_u16): Remove. (__arm_vcreateq_u32): Remove. (__arm_vcreateq_u64): Remove. (__arm_vcreateq_s8): Remove. (__arm_vcreateq_s16): Remove. (__arm_vcreateq_s32): Remove. (__arm_vcreateq_s64): Remove. (__arm_vcreateq_f16): Remove. (__arm_vcreateq_f32): Remove. --- gcc/config/arm/arm-mve-builtins-base.cc | 10 +++ gcc/config/arm/arm-mve-builtins-base.def | 2 + gcc/config/arm/arm-mve-builtins-base.h | 1 + gcc/config/arm/arm_mve.h | 80 ------------------------ 4 files changed, 13 insertions(+), 80 deletions(-) diff --git a/gcc/config/arm/arm-mve-builtins-base.cc b/gcc/config/arm/arm-mve-builtins-base.cc index 499a1ef9f0e..9722c861faf 100644 --- a/gcc/config/arm/arm-mve-builtins-base.cc +++ b/gcc/config/arm/arm-mve-builtins-base.cc @@ -106,8 +106,18 @@ namespace arm_mve { UNSPEC##_M_S, UNSPEC##_M_U, UNSPEC##_M_F, \ UNSPEC##_M_N_S, UNSPEC##_M_N_U, -1)) + /* Helper for builtins without RTX codes, no _m predicated and no _n + overrides. */ +#define FUNCTION_WITHOUT_M_N(NAME, UNSPEC) FUNCTION \ + (NAME, unspec_mve_function_exact_insn, \ + (UNSPEC##_S, UNSPEC##_U, UNSPEC##_F, \ + -1, -1, -1, \ + -1, -1, -1, \ + -1, -1, -1)) + FUNCTION_WITH_RTX_M_N (vaddq, PLUS, VADDQ) FUNCTION_WITH_RTX_M (vandq, AND, VANDQ) +FUNCTION_WITHOUT_M_N (vcreateq, VCREATEQ) FUNCTION_WITH_RTX_M (veorq, XOR, VEORQ) FUNCTION_WITH_RTX_M_N (vmulq, MULT, VMULQ) FUNCTION_WITH_RTX_M_N_NO_N_F (vorrq, IOR, VORRQ) diff --git a/gcc/config/arm/arm-mve-builtins-base.def b/gcc/config/arm/arm-mve-builtins-base.def index c3f8c0f0eeb..1bfd15f973c 100644 --- a/gcc/config/arm/arm-mve-builtins-base.def +++ b/gcc/config/arm/arm-mve-builtins-base.def @@ -20,6 +20,7 @@ #define REQUIRES_FLOAT false DEF_MVE_FUNCTION (vaddq, binary_opt_n, all_integer, mx_or_none) DEF_MVE_FUNCTION (vandq, binary, all_integer, mx_or_none) +DEF_MVE_FUNCTION (vcreateq, create, all_integer_with_64, none) DEF_MVE_FUNCTION (veorq, binary, all_integer, mx_or_none) DEF_MVE_FUNCTION (vmulq, binary_opt_n, all_integer, mx_or_none) DEF_MVE_FUNCTION (vorrq, binary_orrq, all_integer, mx_or_none) @@ -31,6 +32,7 @@ DEF_MVE_FUNCTION (vuninitializedq, inherent, all_integer_with_64, none) #define REQUIRES_FLOAT true DEF_MVE_FUNCTION (vaddq, binary_opt_n, all_float, mx_or_none) DEF_MVE_FUNCTION (vandq, binary, all_float, mx_or_none) +DEF_MVE_FUNCTION (vcreateq, create, all_float, none) DEF_MVE_FUNCTION (veorq, binary, all_float, mx_or_none) DEF_MVE_FUNCTION (vmulq, binary_opt_n, all_float, mx_or_none) DEF_MVE_FUNCTION (vorrq, binary_orrq, all_float, mx_or_none) diff --git a/gcc/config/arm/arm-mve-builtins-base.h b/gcc/config/arm/arm-mve-builtins-base.h index c450b373239..8dd6bff01bf 100644 --- a/gcc/config/arm/arm-mve-builtins-base.h +++ b/gcc/config/arm/arm-mve-builtins-base.h @@ -25,6 +25,7 @@ namespace functions { extern const function_base *const vaddq; extern const function_base *const vandq; +extern const function_base *const vcreateq; extern const function_base *const veorq; extern const function_base *const vmulq; extern const function_base *const vorrq; diff --git a/gcc/config/arm/arm_mve.h b/gcc/config/arm/arm_mve.h index edf8e247421..4810e2977d3 100644 --- a/gcc/config/arm/arm_mve.h +++ b/gcc/config/arm/arm_mve.h @@ -638,20 +638,10 @@ #define vcvtq_n_f32_s32(__a, __imm6) __arm_vcvtq_n_f32_s32(__a, __imm6) #define vcvtq_n_f16_u16(__a, __imm6) __arm_vcvtq_n_f16_u16(__a, __imm6) #define vcvtq_n_f32_u32(__a, __imm6) __arm_vcvtq_n_f32_u32(__a, __imm6) -#define vcreateq_f16(__a, __b) __arm_vcreateq_f16(__a, __b) -#define vcreateq_f32(__a, __b) __arm_vcreateq_f32(__a, __b) #define vcvtq_n_s16_f16(__a, __imm6) __arm_vcvtq_n_s16_f16(__a, __imm6) #define vcvtq_n_s32_f32(__a, __imm6) __arm_vcvtq_n_s32_f32(__a, __imm6) #define vcvtq_n_u16_f16(__a, __imm6) __arm_vcvtq_n_u16_f16(__a, __imm6) #define vcvtq_n_u32_f32(__a, __imm6) __arm_vcvtq_n_u32_f32(__a, __imm6) -#define vcreateq_u8(__a, __b) __arm_vcreateq_u8(__a, __b) -#define vcreateq_u16(__a, __b) __arm_vcreateq_u16(__a, __b) -#define vcreateq_u32(__a, __b) __arm_vcreateq_u32(__a, __b) -#define vcreateq_u64(__a, __b) __arm_vcreateq_u64(__a, __b) -#define vcreateq_s8(__a, __b) __arm_vcreateq_s8(__a, __b) -#define vcreateq_s16(__a, __b) __arm_vcreateq_s16(__a, __b) -#define vcreateq_s32(__a, __b) __arm_vcreateq_s32(__a, __b) -#define vcreateq_s64(__a, __b) __arm_vcreateq_s64(__a, __b) #define vshrq_n_s8(__a, __imm) __arm_vshrq_n_s8(__a, __imm) #define vshrq_n_s16(__a, __imm) __arm_vshrq_n_s16(__a, __imm) #define vshrq_n_s32(__a, __imm) __arm_vshrq_n_s32(__a, __imm) @@ -3222,62 +3212,6 @@ __arm_vpnot (mve_pred16_t __a) return __builtin_mve_vpnotv16bi (__a); } -__extension__ extern __inline uint8x16_t -__attribute__ ((__always_inline__, __gnu_inline__, __artificial__)) -__arm_vcreateq_u8 (uint64_t __a, uint64_t __b) -{ - return __builtin_mve_vcreateq_uv16qi (__a, __b); -} - -__extension__ extern __inline uint16x8_t -__attribute__ ((__always_inline__, __gnu_inline__, __artificial__)) -__arm_vcreateq_u16 (uint64_t __a, uint64_t __b) -{ - return __builtin_mve_vcreateq_uv8hi (__a, __b); -} - -__extension__ extern __inline uint32x4_t -__attribute__ ((__always_inline__, __gnu_inline__, __artificial__)) -__arm_vcreateq_u32 (uint64_t __a, uint64_t __b) -{ - return __builtin_mve_vcreateq_uv4si (__a, __b); -} - -__extension__ extern __inline uint64x2_t -__attribute__ ((__always_inline__, __gnu_inline__, __artificial__)) -__arm_vcreateq_u64 (uint64_t __a, uint64_t __b) -{ - return __builtin_mve_vcreateq_uv2di (__a, __b); -} - -__extension__ extern __inline int8x16_t -__attribute__ ((__always_inline__, __gnu_inline__, __artificial__)) -__arm_vcreateq_s8 (uint64_t __a, uint64_t __b) -{ - return __builtin_mve_vcreateq_sv16qi (__a, __b); -} - -__extension__ extern __inline int16x8_t -__attribute__ ((__always_inline__, __gnu_inline__, __artificial__)) -__arm_vcreateq_s16 (uint64_t __a, uint64_t __b) -{ - return __builtin_mve_vcreateq_sv8hi (__a, __b); -} - -__extension__ extern __inline int32x4_t -__attribute__ ((__always_inline__, __gnu_inline__, __artificial__)) -__arm_vcreateq_s32 (uint64_t __a, uint64_t __b) -{ - return __builtin_mve_vcreateq_sv4si (__a, __b); -} - -__extension__ extern __inline int64x2_t -__attribute__ ((__always_inline__, __gnu_inline__, __artificial__)) -__arm_vcreateq_s64 (uint64_t __a, uint64_t __b) -{ - return __builtin_mve_vcreateq_sv2di (__a, __b); -} - __extension__ extern __inline int8x16_t __attribute__ ((__always_inline__, __gnu_inline__, __artificial__)) __arm_vshrq_n_s8 (int8x16_t __a, const int __imm) @@ -15580,20 +15514,6 @@ __arm_vcvtq_n_f32_u32 (uint32x4_t __a, const int __imm6) return __builtin_mve_vcvtq_n_to_f_uv4sf (__a, __imm6); } -__extension__ extern __inline float16x8_t -__attribute__ ((__always_inline__, __gnu_inline__, __artificial__)) -__arm_vcreateq_f16 (uint64_t __a, uint64_t __b) -{ - return __builtin_mve_vcreateq_fv8hf (__a, __b); -} - -__extension__ extern __inline float32x4_t -__attribute__ ((__always_inline__, __gnu_inline__, __artificial__)) -__arm_vcreateq_f32 (uint64_t __a, uint64_t __b) -{ - return __builtin_mve_vcreateq_fv4sf (__a, __b); -} - __extension__ extern __inline int16x8_t __attribute__ ((__always_inline__, __gnu_inline__, __artificial__)) __arm_vcvtq_n_s16_f16 (float16x8_t __a, const int __imm6)