From patchwork Tue Apr 18 13:46:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 84864 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2869990vqo; Tue, 18 Apr 2023 06:57:13 -0700 (PDT) X-Google-Smtp-Source: AKy350Zt9O5Bx39jvbDjCs6+gsLF44iaDBTgRk0/eeHiP/4jrk/YRW3i9RAfSCS8NKXAthirZCQt X-Received: by 2002:a17:906:ae0f:b0:94f:1822:bb33 with SMTP id le15-20020a170906ae0f00b0094f1822bb33mr10467860ejb.22.1681826233414; Tue, 18 Apr 2023 06:57:13 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id wl23-20020a170907311700b009333dc25e58si11907914ejb.109.2023.04.18.06.57.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 06:57:13 -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=WxNZ70S0; 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 23CAC38A8153 for ; Tue, 18 Apr 2023 13:51:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 23CAC38A8153 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681825918; bh=E3xZKktyZI1ZVfx/o1suEYla7kE/t9IvBfZnsU96thU=; 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=WxNZ70S0OsAWrx3DMQsqWZ3t4LHQVaQzCjEdU9dU02w9L/XgLIJ5xEwbYI2ozl/cH tb4Vvo+ZJHFsimozIQX7zR5bcs7T498Qg4GtM4vPyE4/DrTQ0Vct60WOukiT8op91f i1TE3HfEhtZn+Nz4WISC+mNWFwv4jOHdv2rgXy7Y= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2087.outbound.protection.outlook.com [40.107.247.87]) by sourceware.org (Postfix) with ESMTPS id 0CF773857348 for ; Tue, 18 Apr 2023 13:47:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0CF773857348 Received: from DU2PR04CA0344.eurprd04.prod.outlook.com (2603:10a6:10:2b4::17) by AM9PR08MB5924.eurprd08.prod.outlook.com (2603:10a6:20b:282::8) 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 DBAEUR03FT047.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2b4:cafe::64) by DU2PR04CA0344.outlook.office365.com (2603:10a6:10:2b4::17) 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 DBAEUR03FT047.mail.protection.outlook.com (100.127.143.25) 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:43 +0000 Received: ("Tessian outbound 945aec65ec65:v136"); Tue, 18 Apr 2023 13:47:43 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: d25a7c6e45607039 X-CR-MTA-TID: 64aa7808 Received: from f9eeaf4f7f72.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 14D06857-B7B7-43EE-9723-B10EBCF6F9BC.1; Tue, 18 Apr 2023 13:47:30 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f9eeaf4f7f72.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 18 Apr 2023 13:47:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KbQgcD540mc5ajjF1L/km4vmwQH+pxIbqgyKPTivRKytb05FR1zDiu1yAmxQr1ngYhvFJBLSxa/y3XrmDHNPtS4pxFKqLsHjfX7TfRiGuBoUSptU4JWhKSwL0ZXstQpbyXMxLfYFPjc+FpLjl0N68mOglYi05LCNZ8i3/xGb9ddYNkdHxpERPJnBM0A7oimzfhOZ82uaFaX1UErzxhh5Bp843d8X5QtFAUWe/tidedhjAiN09OtwmpjjKqj/O2gMiSTaV8Vk6DcXYkVLAacQGP+44H0htaAs8Rl/vJdrdzMPvH45S3qUnuG8HcK0mmCh1WJ84iZa5n4XLgnomQ5F5w== 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=E3xZKktyZI1ZVfx/o1suEYla7kE/t9IvBfZnsU96thU=; b=i/RC6g6g8sTREI6DvrAx6fP9mH0x1ch3eeVLNuk3+6bKxoR1OfGo3VN+3Z1hFmxSg9Jvo9zTkwciU6omeu5ui0J0kmz5rlGmFnYHV9pDvlvXjby53bh67qCK5q5gRyHwugRtdz62rkwHpXrBelY44aMCb1HtgI6f2phcZN2Di/9u+w4hBjdAuIKCPb+Z+/GUKzdETODy1uDeEYqQdfOi9qmA4RctuLSCnK+y/lxkeFu66vkRrIV3i9+gMhny5+NopUt6N3jni2Fym+gKRmbDpXjtNEIi7Aa9Q2Lj9ZyNERzoSmFdeCifrUKSv7pXr/iceyIEj9gn9eJtmwwTzOG4IQ== 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 AM5PR1001CA0004.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:206:2::17) by GV1PR08MB8354.eurprd08.prod.outlook.com (2603:10a6:150:a4::6) 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:28 +0000 Received: from AM7EUR03FT020.eop-EUR03.prod.protection.outlook.com (2603:10a6:206:2:cafe::5a) by AM5PR1001CA0004.outlook.office365.com (2603:10a6:206:2::17) 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:28 +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 AM7EUR03FT020.mail.protection.outlook.com (100.127.140.196) 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:28 +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:27 +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:27 +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:26 +0000 To: , , , CC: Christophe Lyon Subject: [PATCH 19/22] arm: [MVE intrinsics] factorize several binary _n operations Date: Tue, 18 Apr 2023 15:46:05 +0200 Message-ID: <20230418134608.244751-20-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: AM7EUR03FT020:EE_|GV1PR08MB8354:EE_|DBAEUR03FT047:EE_|AM9PR08MB5924:EE_ X-MS-Office365-Filtering-Correlation-Id: ffc37d89-c076-4857-840d-08db40137c0d 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: PkA3GBRuDzvHdT09ghsGkf2O/zo3iKjDBWVnp+QvU7iEEsyetGXyjZ5OP/3Uo3Mdaiqg52c+lslN8fuzJSlPzE0Gr+tulipIoKGpfm4aBEvzvFEYTYjpWuEEST2fHceMF7S/evGH63j36yV/M2vKEL1LdkWGpOC0eD1yOWeAAk+JZiwZTasxnaKbaSfkwTVWMxUo8xHWpv9eIEmlfPbeo3J8G1hWA20LCDtk+lrwp0YsrV2Db0d3dessc6G31UvFY8N3H80GHU4kFuLMz3hF7C1ENHQ3nSdwcuKPTErb55lBasGvU1i8c+yO+A9jjq15RobPKPz0rG69EqDkg6xTMRAYdY9XVWnwcofdG0YFonPc+R3eybr7+wIwr+KTrRfHglesz/aVZzLAznJ4nrUczdyKrTEGZR6xR1bmnKw7sW5lT6sOUP3F0v2pmWOh7/g1Ku5Tk2i4CDMPnDXA3DMBreF1G6OWnGcwBBaKoQnv165k6SZV1vNn41B8vKVq5BoAOGPfHB3324A8zSkTF5OuXGPgIZAjN3xQdvzAeRhCErzKk0DtWdj8cOZXtNRaGKxY09hNf1pyMUvFuZ3ThGt/f2Tdu+jo7V/oLUbxde1kc9w1cyn0J0bkbR2p6HAoYtYfCZE4EhaUMcZJh4VPfVO5DxG4XdUVAhrh74wJnei1LTX8EHCk28jZTr/V2Fswl3pqTX+byU5bFxcCOdkfpL3XGg== 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)(136003)(346002)(376002)(39860400002)(451199021)(36840700001)(46966006)(426003)(5660300002)(44832011)(82310400005)(2616005)(336012)(47076005)(83380400001)(356005)(86362001)(186003)(26005)(81166007)(82740400003)(1076003)(36860700001)(8936002)(8676002)(110136005)(478600001)(6636002)(40480700001)(6666004)(7696005)(41300700001)(316002)(36756003)(70206006)(4326008)(70586007)(2906002)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB8354 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT047.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 3aa29b62-edf6-4a69-b912-08db40137311 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: svj5pFMQyReeB6TTM43O7wn74sfwRJvzuMySdj4KCRq/tSYuteBrcwjEicFEUpd3UI7eaNQ+1pMGhQEuDVP4teFCYIxEzmsUzKHeoMlOATUkOUSKRnr0wxHq9ewchpi2uc4mbfwdnPS1wU6roR+7hhwIunKYl7MdbWnBHGq7m+EjMEBpbBsLfrH9RM12IiSOcVig+IgBdbLPucA25us2Gdj1YjkgkaXIBWMlI/CtJpqD9un6Ag6K0gER1si7YNEi06a3Gbs43DuR6c0IKUxM6Q+6WW6dHL30Bsq4b/TqJuQqAHbA6NzFH1XuXzWapaUAHcl44kuwrEDum2cZOX4QPXhgMcXJUEUPnxdxP85i+qL4cajIi+EnxnOWbJtuOTDrFEkIgxrfS7K2/xRgj+KxEeViPpIDTE16QJOcXHd/x45ik50FA4dOG+oePAx3k0Xs5yHYeVy5MIcLsBWWcsYCWbLaptvlgwkuqE3ZQ9SW8NGNagXQVYYQTV4fo19pvHMW4cJpNd31jjGGp9OfMwnal7w3kTe4Yc6UUJLRZTaOs0Rdf2i9QPNxMPdZYeIrLAXqNbP3R0vPO3fsDdeHHxpGuj7Yo1/ogS3+umgmdUVNo4zWcZCG7j7Croz6iWQ2ANqbTX1v4JDC5hDa220U8IJjrNPBDKYdBAiJyCOuccqQYBxMlpjAQCfsqULsMG9Tfn1jyJB7hx7y2C2ZclBDtK58PA== 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)(39860400002)(136003)(376002)(396003)(346002)(451199021)(40470700004)(36840700001)(46966006)(4326008)(6636002)(316002)(110136005)(70206006)(70586007)(6666004)(7696005)(478600001)(40480700001)(82310400005)(8676002)(8936002)(41300700001)(5660300002)(2906002)(44832011)(81166007)(82740400003)(36756003)(86362001)(426003)(2616005)(336012)(1076003)(26005)(40460700003)(186003)(36860700001)(47076005)(83380400001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 13:47:43.2873 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ffc37d89-c076-4857-840d-08db40137c0d 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: DBAEUR03FT047.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB5924 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?1763522624807570543?= X-GMAIL-MSGID: =?utf-8?q?1763522624807570543?= Factorize vhaddq_n, vhsubq_n, vqaddq_n, vqdmulhq_n, vqrdmulhq_n, vqsubq_n so that they use the same pattern. 2022-09-08 Christophe Lyon gcc/ * config/arm/iterators.md (MVE_INT_SU_N_BINARY): New. (mve_insn): Add vhaddq, vhsubq, vqaddq, vqdmulhq, vqrdmulhq, vqsubq. (supf): Add VQDMULHQ_N_S, VQRDMULHQ_N_S. * config/arm/mve.md (mve_vhaddq_n_) (mve_vhsubq_n_, mve_vqaddq_n_) (mve_vqdmulhq_n_s, mve_vqrdmulhq_n_s) (mve_vqsubq_n_): Merge into ... (@mve_q_n_): ... this. --- gcc/config/arm/iterators.md | 17 ++++++++ gcc/config/arm/mve.md | 86 ++++--------------------------------- 2 files changed, 25 insertions(+), 78 deletions(-) diff --git a/gcc/config/arm/iterators.md b/gcc/config/arm/iterators.md index 18d70350bbe..6dbc40f842c 100644 --- a/gcc/config/arm/iterators.md +++ b/gcc/config/arm/iterators.md @@ -390,6 +390,15 @@ (define_int_iterator MVE_INT_N_BINARY [ VSUBQ_N_S VSUBQ_N_U ]) +(define_int_iterator MVE_INT_SU_N_BINARY [ + VHADDQ_N_S VHADDQ_N_U + VHSUBQ_N_S VHSUBQ_N_U + VQADDQ_N_S VQADDQ_N_U + VQDMULHQ_N_S + VQRDMULHQ_N_S + VQSUBQ_N_S VQSUBQ_N_U + ]) + (define_int_iterator MVE_INT_N_BINARY_LOGIC [ VBICQ_N_S VBICQ_N_U VORRQ_N_S VORRQ_N_U @@ -442,7 +451,9 @@ (define_int_attr mve_insn [ (VCREATEQ_S "vcreate") (VCREATEQ_U "vcreate") (VCREATEQ_F "vcreate") (VEORQ_M_S "veor") (VEORQ_M_U "veor") (VEORQ_M_F "veor") (VHADDQ_M_S "vhadd") (VHADDQ_M_U "vhadd") + (VHADDQ_N_S "vhadd") (VHADDQ_N_U "vhadd") (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") (VMULHQ_M_S "vmulh") (VMULHQ_M_U "vmulh") @@ -453,19 +464,23 @@ (define_int_attr mve_insn [ (VORRQ_M_S "vorr") (VORRQ_M_U "vorr") (VORRQ_M_F "vorr") (VORRQ_N_S "vorr") (VORRQ_N_U "vorr") (VQADDQ_M_S "vqadd") (VQADDQ_M_U "vqadd") + (VQADDQ_N_S "vqadd") (VQADDQ_N_U "vqadd") (VQDMLADHQ_M_S "vqdmladh") (VQDMLADHXQ_M_S "vqdmladhx") (VQDMLSDHQ_M_S "vqdmlsdh") (VQDMLSDHXQ_M_S "vqdmlsdhx") (VQDMULHQ_M_S "vqdmulh") + (VQDMULHQ_N_S "vqdmulh") (VQRDMLADHQ_M_S "vqrdmladh") (VQRDMLADHXQ_M_S "vqrdmladhx") (VQRDMLSDHQ_M_S "vqrdmlsdh") (VQRDMLSDHXQ_M_S "vqrdmlsdhx") (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_S "vqsub") (VQSUBQ_M_U "vqsub") + (VQSUBQ_N_S "vqsub") (VQSUBQ_N_U "vqsub") (VRHADDQ_M_S "vrhadd") (VRHADDQ_M_U "vrhadd") (VRMULHQ_M_S "vrmulh") (VRMULHQ_M_U "vrmulh") (VRSHLQ_M_S "vrshl") (VRSHLQ_M_U "vrshl") @@ -1619,6 +1634,8 @@ (define_int_attr supf [(VCVTQ_TO_F_S "s") (VCVTQ_TO_F_U "u") (VREV16Q_S "s") (VQRDMLSDHQ_M_S "s") (VQRDMLSDHXQ_M_S "s") (VQRDMULHQ_M_S "s") + (VQDMULHQ_N_S "s") + (VQRDMULHQ_N_S "s") ]) ;; Both kinds of return insn. diff --git a/gcc/config/arm/mve.md b/gcc/config/arm/mve.md index 21c54197db5..3377e03ee06 100644 --- a/gcc/config/arm/mve.md +++ b/gcc/config/arm/mve.md @@ -1015,16 +1015,21 @@ (define_expand "mve_veorq_s" ;; ;; [vhaddq_n_u, vhaddq_n_s]) +;; [vhsubq_n_u, vhsubq_n_s]) +;; [vqaddq_n_s, vqaddq_n_u]) +;; [vqdmulhq_n_s]) +;; [vqrdmulhq_n_s]) +;; [vqsubq_n_s, vqsubq_n_u]) ;; -(define_insn "mve_vhaddq_n_" +(define_insn "@mve_q_n_" [ (set (match_operand:MVE_2 0 "s_register_operand" "=w") (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "w") (match_operand: 2 "s_register_operand" "r")] - VHADDQ_N)) + MVE_INT_SU_N_BINARY)) ] "TARGET_HAVE_MVE" - "vhadd.%#\t%q0, %q1, %2" + ".%#\t%q0, %q1, %2" [(set_attr "type" "mve_move") ]) @@ -1073,21 +1078,6 @@ (define_insn "mve_vhcaddq_rot90_s" [(set_attr "type" "mve_move") ]) -;; -;; [vhsubq_n_u, vhsubq_n_s]) -;; -(define_insn "mve_vhsubq_n_" - [ - (set (match_operand:MVE_2 0 "s_register_operand" "=w") - (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "w") - (match_operand: 2 "s_register_operand" "r")] - VHSUBQ_N)) - ] - "TARGET_HAVE_MVE" - "vhsub.%#\t%q0, %q1, %2" - [(set_attr "type" "mve_move") -]) - ;; ;; [vhsubq_s, vhsubq_u]) ;; @@ -1415,21 +1405,6 @@ (define_expand "mve_vorrq_u" "TARGET_HAVE_MVE" ) -;; -;; [vqaddq_n_s, vqaddq_n_u]) -;; -(define_insn "mve_vqaddq_n_" - [ - (set (match_operand:MVE_2 0 "s_register_operand" "=w") - (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "w") - (match_operand: 2 "s_register_operand" "r")] - VQADDQ_N)) - ] - "TARGET_HAVE_MVE" - "vqadd.%#\t%q0, %q1, %2" - [(set_attr "type" "mve_move") -]) - ;; ;; [vqaddq_u, vqaddq_s]) ;; @@ -1445,21 +1420,6 @@ (define_insn "mve_vqaddq_" [(set_attr "type" "mve_move") ]) -;; -;; [vqdmulhq_n_s]) -;; -(define_insn "mve_vqdmulhq_n_s" - [ - (set (match_operand:MVE_2 0 "s_register_operand" "=w") - (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "w") - (match_operand: 2 "s_register_operand" "r")] - VQDMULHQ_N_S)) - ] - "TARGET_HAVE_MVE" - "vqdmulh.s%#\t%q0, %q1, %2" - [(set_attr "type" "mve_move") -]) - ;; ;; [vqdmulhq_s]) ;; @@ -1475,21 +1435,6 @@ (define_insn "mve_vqdmulhq_s" [(set_attr "type" "mve_move") ]) -;; -;; [vqrdmulhq_n_s]) -;; -(define_insn "mve_vqrdmulhq_n_s" - [ - (set (match_operand:MVE_2 0 "s_register_operand" "=w") - (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "w") - (match_operand: 2 "s_register_operand" "r")] - VQRDMULHQ_N_S)) - ] - "TARGET_HAVE_MVE" - "vqrdmulh.s%#\t%q0, %q1, %2" - [(set_attr "type" "mve_move") -]) - ;; ;; [vqrdmulhq_s]) ;; @@ -1595,21 +1540,6 @@ (define_insn "mve_vqshluq_n_s" [(set_attr "type" "mve_move") ]) -;; -;; [vqsubq_n_s, vqsubq_n_u]) -;; -(define_insn "mve_vqsubq_n_" - [ - (set (match_operand:MVE_2 0 "s_register_operand" "=w") - (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "w") - (match_operand: 2 "s_register_operand" "r")] - VQSUBQ_N)) - ] - "TARGET_HAVE_MVE" - "vqsub.%#\t%q0, %q1, %2" - [(set_attr "type" "mve_move") -]) - ;; ;; [vqsubq_u, vqsubq_s]) ;;