From patchwork Tue Apr 18 13:46:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 84865 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2870095vqo; Tue, 18 Apr 2023 06:57:24 -0700 (PDT) X-Google-Smtp-Source: AKy350Z1OMdTroFV2fgvJclf1odvdB9cnhnn1id+5kj8btea1ZIElH7UM3PumxOYVr7yJ/syx5M2 X-Received: by 2002:a17:906:c0c7:b0:94e:c4b:4d95 with SMTP id bn7-20020a170906c0c700b0094e0c4b4d95mr9967433ejb.69.1681826244694; Tue, 18 Apr 2023 06:57:24 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id wj5-20020a170907050500b0094f2f3c968fsi6352823ejb.49.2023.04.18.06.57.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 06:57:24 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=Pnc8WmsH; arc=fail (signature failed); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 D5B3C38A90AD for ; Tue, 18 Apr 2023 13:52:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D5B3C38A90AD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681825922; bh=2BQwehvO8mXxT1A3iqU9Dpjx56kUfijT42HcuAw78eg=; 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=Pnc8WmsHLZk1lI7HZjkirtsiz1Q4jiVMgYq+ia8GJfkAC5zwhrKnCAFCoZNeP2N8S zjhbpy3gHmP2y/GcuZsyq3EUbQLQHwtHSIkQ+ynNiPUMlPOpu7Oqe0kCllc/tSvbsw 4VmpeYCzHdOeHwGvarVfYxpO31QrZ7tMUKKW/CV8= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2075.outbound.protection.outlook.com [40.107.6.75]) by sourceware.org (Postfix) with ESMTPS id 60BE1385701D for ; Tue, 18 Apr 2023 13:47:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 60BE1385701D Received: from DB6PR0801CA0061.eurprd08.prod.outlook.com (2603:10a6:4:2b::29) by DU2PR08MB10085.eurprd08.prod.outlook.com (2603:10a6:10:496::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:45 +0000 Received: from DBAEUR03FT060.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:2b:cafe::be) by DB6PR0801CA0061.outlook.office365.com (2603:10a6:4:2b::29) 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:45 +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 DBAEUR03FT060.mail.protection.outlook.com (100.127.142.238) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.20 via Frontend Transport; Tue, 18 Apr 2023 13:47:45 +0000 Received: ("Tessian outbound 5154e9d36775:v136"); Tue, 18 Apr 2023 13:47:45 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2e2923bbe5947cd1 X-CR-MTA-TID: 64aa7808 Received: from 16777c694904.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6EEC4086-2E9A-4F4E-8D73-A628778FC79F.1; Tue, 18 Apr 2023 13:47:34 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 16777c694904.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 18 Apr 2023 13:47:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XLSzkst3JAU9zQAStQVxH4YSU0yYCnPe69Gd0aesD/GOvSi2yTcE4/13i/m2wBGh2HRJBZZrIyhjXaGHYLwDoRosNrP++kBFs6eTkXBOnm4ErqytgOw71biVUuYN2Ex20/D9xfyfE/PiYUU5uuMvhvYFbbshRUqUcKYB/VJVv9OZhoC1kXa8iI0ma/agDW8sHhB6QmXyr/11ZZUkUSVug+erMIO7Nr1hDCCXHeJEvbyokkl04aIE9zNAbZhkQWoIbu+LtxhZBcNqFmGI4ifbUn67MIUl91kCIP9/DmrtxC1BO4HiFGQFJVJYV5VJ+XkwBS2rsm1U9x5OahBYh6rvVQ== 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=2BQwehvO8mXxT1A3iqU9Dpjx56kUfijT42HcuAw78eg=; b=SSN7Yio11tlhC2btXFHwf74hYDjprRd+ircSFVtQ40Z64DoRRF9pi098RVoHdws3KjUn/LP5XwPCSVzArc1Y52edjrRklPxZFw/yqajVYI5XgAu4VwMiD56G6eKVnZKkFRN/60fX7Zolu+8ExwOOePIZ80g1tHTLD77crekvinLLg6brnqusFL/+TFFlghrGqMBtCeKDEBtkTGFA1GxW1C5hOJNd5qdV3q2GN3rIGnAK9iy2dn2vdWjp7arjj/PyX3ZyCaC26pQXwqFoaBySg5hXfXnd6SBg+u1dr7pao/O4Xg2eCHcbanoN34zMPmoBxacXLGG+52fwjvH7imsy5g== 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 AS9PR04CA0042.eurprd04.prod.outlook.com (2603:10a6:20b:46a::14) by AS2PR08MB8503.eurprd08.prod.outlook.com (2603:10a6:20b:55e::19) 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:29 +0000 Received: from AM7EUR03FT056.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:46a:cafe::7d) by AS9PR04CA0042.outlook.office365.com (2603:10a6:20b:46a::14) 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:29 +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 AM7EUR03FT056.mail.protection.outlook.com (100.127.140.107) 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:29 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) by AZ-NEU-EX04.Arm.com (10.251.24.32) 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:28 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) 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:28 +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:28 +0000 To: , , , CC: Christophe Lyon Subject: [PATCH 20/22] arm: [MVE intrinsics] factorize several binary _m_n operations Date: Tue, 18 Apr 2023 15:46:06 +0200 Message-ID: <20230418134608.244751-21-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: AM7EUR03FT056:EE_|AS2PR08MB8503:EE_|DBAEUR03FT060:EE_|DU2PR08MB10085:EE_ X-MS-Office365-Filtering-Correlation-Id: 3c7d5758-3e06-49df-856d-08db40137d25 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: IwXLXuibF8NpIXWlj9IBvOTI9yeF133nikLnvmo9Jg4PoH4W0dy2fmXPuLcnVDQNPGlTIAuH6AEGRcUIR8EGBQHrEALUFRIGGGcNWL4KbDo/XKq9YZd6x0mJDX/wOyOvMpP5sWMk4AlmoB14603tc9MYuQRm3Rpbz3X7FtSi6Y0R2eZMIKdtCRtU23hdX3JqNZtm3Tby+0g3kON8OeO7kvj1rA/HUz1dfL7g2y95N5ivk3dgF8rqUaR2yYQ/Mqs3uR8LwYbcNSEL2OMEMxZiNm87Rsl0Ar/4yKH+a5b8MED6cpttelbwSQvE23SXAFsjM/bFvqtrh0BP9DCew3aBghqffUhirqeV+ubY5KjzAmA8zRC3rYILaqtEb26TjJ+Yk9LaBdB6ro5BRIopKPsaGn9akZ8rPTcVtECPWmAunr8fVxouW1t8oOlTwCqMDdshvbVhb1yXyyTvsMpOssnBHJgDr3IMsZdTUNIAAnfrMXi1Xi7xwsDVPl3cqOjlGSegIrzpvqmaG3F0dKTVpQ8VA++js4wZakBKHEE83exb4lbWbhI4cVd2En1FUaT/9tlAPxQr6CyyQiKbGwFyrRvymZHkEDNanENRx6NSobxrHlutwXcgVWWVIeoFd1CKrDFQSqHxsudpTbJqjYomy0DwWAfLQBDMpq1PNPZ05AKveb0uIeVuVFfCA7T7/xddhOQJc4UYli350/siyMZYB0RgdQ== 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)(396003)(346002)(376002)(136003)(39860400002)(451199021)(46966006)(36840700001)(356005)(110136005)(6636002)(4326008)(316002)(70586007)(70206006)(478600001)(6666004)(7696005)(40480700001)(82310400005)(5660300002)(41300700001)(8676002)(2906002)(30864003)(44832011)(81166007)(82740400003)(8936002)(86362001)(36756003)(186003)(336012)(426003)(2616005)(26005)(1076003)(36860700001)(83380400001)(47076005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB8503 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT060.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: d14e8c5e-f12f-4834-0848-08db401373b3 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bsN8z67B6Uq1F1eTzawMeWsN5NAMnQpqbb8nQufIFetIKkWHClRgU8sI0dDK1n8jnM0s4d+1Wn895azPdg1y1OKxGBPK5UsXp/4RrZzX24qPvTYxKpkVc1bXM1PxNlDdFR6kyZ8Wn2kikZ+oTwC0IyTy0ipQaD88Gk9f2BwTqFxnFb5k8kC/WLl/cGLdr26+gqyTMJPtaw9xq4gzRWw0na6DoRKV+RR3qG9GrNM68hrCxsUHCSn8hAKrUJ31iv1HEKR6UeZbpRAeh6nmKlmfyAjfnPHWC1y0R2FV2q7S4AKOv0cJ8kY1bzg4p9pRwX7/W2a44cSZni1p4Y4dCTH68coAzRW+Ev0gOIM7UrYX5zmzpb9HMl6Zv5N6J4bCxMpZoOvIqmTh3j4Q0chwSN3fSrDB6D8bpPclk980AIO24MORjRLr+U6zqbl0wAkMlvBcNSTUnlwwkq1aC7gLpgdU/oWPix1n0xQrAGX1P4wpLWuCCa4jsrd+hqqu9GLushaB4aM2v4Bk4OhvWDxfjLdLxQm5PvhatIxKz8vLc8PG13Gh7OsvNIuKhzouzbzfwu44XeflP5yS5JBmpAwW9o22tNGuRFotnspIKngaWB99ZlI+iUy1J5tHw7gr27v1n/BYjveDM+EvthgfkegSeaumU1ncoN79flwsZ8TQCS/Y8+rppO8hWujJsi7RHJDX6RIad9MZWVRUIz9HnDfiyb+ZJw== 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)(396003)(39860400002)(376002)(346002)(136003)(451199021)(36840700001)(46966006)(40470700004)(36756003)(6636002)(110136005)(4326008)(316002)(70586007)(70206006)(478600001)(7696005)(6666004)(40480700001)(82310400005)(8936002)(8676002)(5660300002)(41300700001)(30864003)(2906002)(44832011)(82740400003)(86362001)(81166007)(426003)(336012)(2616005)(1076003)(26005)(186003)(40460700003)(36860700001)(47076005)(83380400001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 13:47:45.1224 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3c7d5758-3e06-49df-856d-08db40137d25 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: DBAEUR03FT060.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR08MB10085 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?1763522636391270441?= X-GMAIL-MSGID: =?utf-8?q?1763522636391270441?= Factorize vhaddq_m_n, vhsubq_m_n, vmlaq_m_n, vmlasq_m_n, vqaddq_m_n, vqdmlahq_m_n, vqdmlashq_m_n, vqdmulhq_m_n, vqrdmlahq_m_n, vqrdmlashq_m_n, vqrdmulhq_m_n, vqsubq_m_n so that they use the same pattern. 2022-09-08 Christophe Lyon gcc/ * config/arm/iterators.md (MVE_INT_SU_M_N_BINARY): New. (mve_insn): Add vhaddq, vhsubq, vmlaq, vmlasq, vqaddq, vqdmlahq, vqdmlashq, vqdmulhq, vqrdmlahq, vqrdmlashq, vqrdmulhq, vqsubq. (supf): Add VQDMLAHQ_M_N_S, VQDMLASHQ_M_N_S, VQRDMLAHQ_M_N_S, VQRDMLASHQ_M_N_S, VQDMULHQ_M_N_S, VQRDMULHQ_M_N_S. * config/arm/mve.md (mve_vhaddq_m_n_) (mve_vhsubq_m_n_, mve_vmlaq_m_n_) (mve_vmlasq_m_n_, mve_vqaddq_m_n_) (mve_vqdmlahq_m_n_s, mve_vqdmlashq_m_n_s) (mve_vqrdmlahq_m_n_s, mve_vqrdmlashq_m_n_s) (mve_vqsubq_m_n_, mve_vqdmulhq_m_n_s) (mve_vqrdmulhq_m_n_s): Merge into ... (@mve_q_m_n_): ... this. --- gcc/config/arm/iterators.md | 33 ++++++ gcc/config/arm/mve.md | 202 +++--------------------------------- 2 files changed, 46 insertions(+), 189 deletions(-) diff --git a/gcc/config/arm/iterators.md b/gcc/config/arm/iterators.md index 6dbc40f842c..60452cdefe3 100644 --- a/gcc/config/arm/iterators.md +++ b/gcc/config/arm/iterators.md @@ -384,6 +384,21 @@ (define_int_iterator MVE_INT_M_N_BINARY_LOGIC [ VORRQ_M_N_S VORRQ_M_N_U ]) +(define_int_iterator MVE_INT_SU_M_N_BINARY [ + VHADDQ_M_N_S VHADDQ_M_N_U + VHSUBQ_M_N_S VHSUBQ_M_N_U + VMLAQ_M_N_S VMLAQ_M_N_U + VMLASQ_M_N_S VMLASQ_M_N_U + VQDMLAHQ_M_N_S + VQDMLASHQ_M_N_S + VQRDMLAHQ_M_N_S + VQRDMLASHQ_M_N_S + VQADDQ_M_N_S VQADDQ_M_N_U + VQSUBQ_M_N_S VQSUBQ_M_N_U + VQDMULHQ_M_N_S + VQRDMULHQ_M_N_S + ]) + (define_int_iterator MVE_INT_N_BINARY [ VADDQ_N_S VADDQ_N_U VMULQ_N_S VMULQ_N_U @@ -450,12 +465,16 @@ (define_int_attr mve_insn [ (VBICQ_N_S "vbic") (VBICQ_N_U "vbic") (VCREATEQ_S "vcreate") (VCREATEQ_U "vcreate") (VCREATEQ_F "vcreate") (VEORQ_M_S "veor") (VEORQ_M_U "veor") (VEORQ_M_F "veor") + (VHADDQ_M_N_S "vhadd") (VHADDQ_M_N_U "vhadd") (VHADDQ_M_S "vhadd") (VHADDQ_M_U "vhadd") (VHADDQ_N_S "vhadd") (VHADDQ_N_U "vhadd") + (VHSUBQ_M_N_S "vhsub") (VHSUBQ_M_N_U "vhsub") (VHSUBQ_M_S "vhsub") (VHSUBQ_M_U "vhsub") (VHSUBQ_N_S "vhsub") (VHSUBQ_N_U "vhsub") (VMAXQ_M_S "vmax") (VMAXQ_M_U "vmax") (VMINQ_M_S "vmin") (VMINQ_M_U "vmin") + (VMLAQ_M_N_S "vmla") (VMLAQ_M_N_U "vmla") + (VMLASQ_M_N_S "vmlas") (VMLASQ_M_N_U "vmlas") (VMULHQ_M_S "vmulh") (VMULHQ_M_U "vmulh") (VMULQ_M_N_S "vmul") (VMULQ_M_N_U "vmul") (VMULQ_M_N_F "vmul") (VMULQ_M_S "vmul") (VMULQ_M_U "vmul") (VMULQ_M_F "vmul") @@ -463,22 +482,30 @@ (define_int_attr mve_insn [ (VORRQ_M_N_S "vorr") (VORRQ_M_N_U "vorr") (VORRQ_M_S "vorr") (VORRQ_M_U "vorr") (VORRQ_M_F "vorr") (VORRQ_N_S "vorr") (VORRQ_N_U "vorr") + (VQADDQ_M_N_S "vqadd") (VQADDQ_M_N_U "vqadd") (VQADDQ_M_S "vqadd") (VQADDQ_M_U "vqadd") (VQADDQ_N_S "vqadd") (VQADDQ_N_U "vqadd") (VQDMLADHQ_M_S "vqdmladh") (VQDMLADHXQ_M_S "vqdmladhx") + (VQDMLAHQ_M_N_S "vqdmlah") + (VQDMLASHQ_M_N_S "vqdmlash") (VQDMLSDHQ_M_S "vqdmlsdh") (VQDMLSDHXQ_M_S "vqdmlsdhx") + (VQDMULHQ_M_N_S "vqdmulh") (VQDMULHQ_M_S "vqdmulh") (VQDMULHQ_N_S "vqdmulh") (VQRDMLADHQ_M_S "vqrdmladh") (VQRDMLADHXQ_M_S "vqrdmladhx") + (VQRDMLAHQ_M_N_S "vqrdmlah") + (VQRDMLASHQ_M_N_S "vqrdmlash") (VQRDMLSDHQ_M_S "vqrdmlsdh") (VQRDMLSDHXQ_M_S "vqrdmlsdhx") + (VQRDMULHQ_M_N_S "vqrdmulh") (VQRDMULHQ_M_S "vqrdmulh") (VQRDMULHQ_N_S "vqrdmulh") (VQRSHLQ_M_S "vqrshl") (VQRSHLQ_M_U "vqrshl") (VQSHLQ_M_S "vqshl") (VQSHLQ_M_U "vqshl") + (VQSUBQ_M_N_S "vqsub") (VQSUBQ_M_N_U "vqsub") (VQSUBQ_M_S "vqsub") (VQSUBQ_M_U "vqsub") (VQSUBQ_N_S "vqsub") (VQSUBQ_N_U "vqsub") (VRHADDQ_M_S "vrhadd") (VRHADDQ_M_U "vrhadd") @@ -1636,6 +1663,12 @@ (define_int_attr supf [(VCVTQ_TO_F_S "s") (VCVTQ_TO_F_U "u") (VREV16Q_S "s") (VQRDMULHQ_M_S "s") (VQDMULHQ_N_S "s") (VQRDMULHQ_N_S "s") + (VQDMLAHQ_M_N_S "s") + (VQDMLASHQ_M_N_S "s") + (VQRDMLAHQ_M_N_S "s") + (VQRDMLASHQ_M_N_S "s") + (VQDMULHQ_M_N_S "s") + (VQRDMULHQ_M_N_S "s") ]) ;; Both kinds of return insn. diff --git a/gcc/config/arm/mve.md b/gcc/config/arm/mve.md index 3377e03ee06..d14a04d5f82 100644 --- a/gcc/config/arm/mve.md +++ b/gcc/config/arm/mve.md @@ -4982,35 +4982,29 @@ (define_insn "mve_vcaddq_rot90_m_" ;; ;; [vhaddq_m_n_s, vhaddq_m_n_u]) -;; -(define_insn "mve_vhaddq_m_n_" - [ - (set (match_operand:MVE_2 0 "s_register_operand" "=w") - (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "0") - (match_operand:MVE_2 2 "s_register_operand" "w") - (match_operand: 3 "s_register_operand" "r") - (match_operand: 4 "vpr_register_operand" "Up")] - VHADDQ_M_N)) - ] - "TARGET_HAVE_MVE" - "vpst\;vhaddt.%# %q0, %q2, %3" - [(set_attr "type" "mve_move") - (set_attr "length""8")]) - -;; ;; [vhsubq_m_n_s, vhsubq_m_n_u]) +;; [vmlaq_m_n_s, vmlaq_m_n_u]) +;; [vmlasq_m_n_u, vmlasq_m_n_s]) +;; [vqaddq_m_n_u, vqaddq_m_n_s]) +;; [vqdmlahq_m_n_s]) +;; [vqdmlashq_m_n_s]) +;; [vqdmulhq_m_n_s]) +;; [vqrdmlahq_m_n_s]) +;; [vqrdmlashq_m_n_s]) +;; [vqrdmulhq_m_n_s]) +;; [vqsubq_m_n_u, vqsubq_m_n_s]) ;; -(define_insn "mve_vhsubq_m_n_" +(define_insn "@mve_q_m_n_" [ (set (match_operand:MVE_2 0 "s_register_operand" "=w") (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "0") (match_operand:MVE_2 2 "s_register_operand" "w") (match_operand: 3 "s_register_operand" "r") (match_operand: 4 "vpr_register_operand" "Up")] - VHSUBQ_M_N)) + MVE_INT_SU_M_N_BINARY)) ] "TARGET_HAVE_MVE" - "vpst\;vhsubt.%# %q0, %q2, %3" + "vpst\;t.%#\t%q0, %q2, %3" [(set_attr "type" "mve_move") (set_attr "length""8")]) @@ -5032,40 +5026,6 @@ (define_insn "mve_vmladavaq_p_" [(set_attr "type" "mve_move") (set_attr "length""8")]) -;; -;; [vmlaq_m_n_s, vmlaq_m_n_u]) -;; -(define_insn "mve_vmlaq_m_n_" - [ - (set (match_operand:MVE_2 0 "s_register_operand" "=w") - (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "0") - (match_operand:MVE_2 2 "s_register_operand" "w") - (match_operand: 3 "s_register_operand" "r") - (match_operand: 4 "vpr_register_operand" "Up")] - VMLAQ_M_N)) - ] - "TARGET_HAVE_MVE" - "vpst\;vmlat.%# %q0, %q2, %3" - [(set_attr "type" "mve_move") - (set_attr "length""8")]) - -;; -;; [vmlasq_m_n_u, vmlasq_m_n_s]) -;; -(define_insn "mve_vmlasq_m_n_" - [ - (set (match_operand:MVE_2 0 "s_register_operand" "=w") - (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "0") - (match_operand:MVE_2 2 "s_register_operand" "w") - (match_operand: 3 "s_register_operand" "r") - (match_operand: 4 "vpr_register_operand" "Up")] - VMLASQ_M_N)) - ] - "TARGET_HAVE_MVE" - "vpst\;vmlast.%# %q0, %q2, %3" - [(set_attr "type" "mve_move") - (set_attr "length""8")]) - ;; ;; [vmullbq_int_m_u, vmullbq_int_m_s]) ;; @@ -5117,91 +5077,6 @@ (define_insn "mve_vornq_m_" [(set_attr "type" "mve_move") (set_attr "length""8")]) -;; -;; [vqaddq_m_n_u, vqaddq_m_n_s]) -;; -(define_insn "mve_vqaddq_m_n_" - [ - (set (match_operand:MVE_2 0 "s_register_operand" "=w") - (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "0") - (match_operand:MVE_2 2 "s_register_operand" "w") - (match_operand: 3 "s_register_operand" "r") - (match_operand: 4 "vpr_register_operand" "Up")] - VQADDQ_M_N)) - ] - "TARGET_HAVE_MVE" - "vpst\;vqaddt.%#\t%q0, %q2, %3" - [(set_attr "type" "mve_move") - (set_attr "length""8")]) - -;; -;; [vqdmlahq_m_n_s]) -;; -(define_insn "mve_vqdmlahq_m_n_s" - [ - (set (match_operand:MVE_2 0 "s_register_operand" "=w") - (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "0") - (match_operand:MVE_2 2 "s_register_operand" "w") - (match_operand: 3 "s_register_operand" "r") - (match_operand: 4 "vpr_register_operand" "Up")] - VQDMLAHQ_M_N_S)) - ] - "TARGET_HAVE_MVE" - "vpst\;vqdmlaht.s%#\t%q0, %q2, %3" - [(set_attr "type" "mve_move") - (set_attr "length""8")]) - -;; -;; [vqdmlashq_m_n_s]) -;; -(define_insn "mve_vqdmlashq_m_n_s" - [ - (set (match_operand:MVE_2 0 "s_register_operand" "=w") - (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "0") - (match_operand:MVE_2 2 "s_register_operand" "w") - (match_operand: 3 "s_register_operand" "r") - (match_operand: 4 "vpr_register_operand" "Up")] - VQDMLASHQ_M_N_S)) - ] - "TARGET_HAVE_MVE" - "vpst\;vqdmlasht.s%#\t%q0, %q2, %3" - [(set_attr "type" "mve_move") - (set_attr "length""8")]) - -;; -;; [vqrdmlahq_m_n_s]) -;; -(define_insn "mve_vqrdmlahq_m_n_s" - [ - (set (match_operand:MVE_2 0 "s_register_operand" "=w") - (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "0") - (match_operand:MVE_2 2 "s_register_operand" "w") - (match_operand: 3 "s_register_operand" "r") - (match_operand: 4 "vpr_register_operand" "Up")] - VQRDMLAHQ_M_N_S)) - ] - "TARGET_HAVE_MVE" - "vpst\;vqrdmlaht.s%#\t%q0, %q2, %3" - [(set_attr "type" "mve_move") - (set_attr "length""8")]) - -;; -;; [vqrdmlashq_m_n_s]) -;; -(define_insn "mve_vqrdmlashq_m_n_s" - [ - (set (match_operand:MVE_2 0 "s_register_operand" "=w") - (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "0") - (match_operand:MVE_2 2 "s_register_operand" "w") - (match_operand: 3 "s_register_operand" "r") - (match_operand: 4 "vpr_register_operand" "Up")] - VQRDMLASHQ_M_N_S)) - ] - "TARGET_HAVE_MVE" - "vpst\;vqrdmlasht.s%#\t%q0, %q2, %3" - [(set_attr "type" "mve_move") - (set_attr "length""8")]) - ;; ;; [vqshlq_m_n_s, vqshlq_m_n_u]) ;; @@ -5219,23 +5094,6 @@ (define_insn "mve_vqshlq_m_n_" [(set_attr "type" "mve_move") (set_attr "length""8")]) -;; -;; [vqsubq_m_n_u, vqsubq_m_n_s]) -;; -(define_insn "mve_vqsubq_m_n_" - [ - (set (match_operand:MVE_2 0 "s_register_operand" "=w") - (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "0") - (match_operand:MVE_2 2 "s_register_operand" "w") - (match_operand: 3 "s_register_operand" "r") - (match_operand: 4 "vpr_register_operand" "Up")] - VQSUBQ_M_N)) - ] - "TARGET_HAVE_MVE" - "vpst\;vqsubt.%#\t%q0, %q2, %3" - [(set_attr "type" "mve_move") - (set_attr "length""8")]) - ;; ;; [vrshrq_m_n_s, vrshrq_m_n_u]) ;; @@ -5389,40 +5247,6 @@ (define_insn "mve_vmlsdavaxq_p_s" [(set_attr "type" "mve_move") (set_attr "length""8")]) -;; -;; [vqdmulhq_m_n_s]) -;; -(define_insn "mve_vqdmulhq_m_n_s" - [ - (set (match_operand:MVE_2 0 "s_register_operand" "=w") - (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "0") - (match_operand:MVE_2 2 "s_register_operand" "w") - (match_operand: 3 "s_register_operand" "r") - (match_operand: 4 "vpr_register_operand" "Up")] - VQDMULHQ_M_N_S)) - ] - "TARGET_HAVE_MVE" - "vpst\;vqdmulht.s%#\t%q0, %q2, %3" - [(set_attr "type" "mve_move") - (set_attr "length""8")]) - -;; -;; [vqrdmulhq_m_n_s]) -;; -(define_insn "mve_vqrdmulhq_m_n_s" - [ - (set (match_operand:MVE_2 0 "s_register_operand" "=w") - (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "0") - (match_operand:MVE_2 2 "s_register_operand" "w") - (match_operand: 3 "s_register_operand" "r") - (match_operand: 4 "vpr_register_operand" "Up")] - VQRDMULHQ_M_N_S)) - ] - "TARGET_HAVE_MVE" - "vpst\;vqrdmulht.s%#\t%q0, %q2, %3" - [(set_attr "type" "mve_move") - (set_attr "length""8")]) - ;; ;; [vmlaldavaq_p_u, vmlaldavaq_p_s]) ;;