From patchwork Thu Nov 17 16:37:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Corallo X-Patchwork-Id: 21825 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp507155wrr; Thu, 17 Nov 2022 08:53:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf6tmBTkVVNEK7VPMX99A9BqOlPh5VFfjJ6LfYeLM4mtGZN39ycjN96ARDjksfOboAJpJNxY X-Received: by 2002:a05:6402:e0d:b0:466:4168:6ea7 with SMTP id h13-20020a0564020e0d00b0046641686ea7mr2807515edh.273.1668704032710; Thu, 17 Nov 2022 08:53:52 -0800 (PST) Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id t5-20020a056402524500b004614db9083csi1328127edd.313.2022.11.17.08.53.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 08:53:52 -0800 (PST) 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=ET090HxD; 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 95ABB38FE399 for ; Thu, 17 Nov 2022 16:46:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 95ABB38FE399 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668703562; bh=yGENMnWnm6smuLEiRJu1mqciJ5InpsEtVKRFIgBuDXY=; 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=ET090HxDhsonLzPCeIpf2qH78tUydctNZ+LHSCTu4jJggPR6bfqLxJARDROn6pILU CgwkETg82BDoPKn5z9JOUJN24H08aTpgaXZ59d6bJDK85PRFCYqJePfARP9HyiEBWB yZpPnW+8i3LfvBwNpA4BlHAeoUlTMmhFrkNDEdpY= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140081.outbound.protection.outlook.com [40.107.14.81]) by sourceware.org (Postfix) with ESMTPS id E65A73AA940F for ; Thu, 17 Nov 2022 16:38:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E65A73AA940F Received: from ZR2P278CA0032.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:47::8) by AS8PR08MB8112.eurprd08.prod.outlook.com (2603:10a6:20b:54e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.6; Thu, 17 Nov 2022 16:38:50 +0000 Received: from VI1EUR03FT007.eop-EUR03.prod.protection.outlook.com (2603:10a6:910:47:cafe::50) by ZR2P278CA0032.outlook.office365.com (2603:10a6:910:47::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.20 via Frontend Transport; Thu, 17 Nov 2022 16:38:49 +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 VI1EUR03FT007.mail.protection.outlook.com (100.127.144.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.8 via Frontend Transport; Thu, 17 Nov 2022 16:38:49 +0000 Received: ("Tessian outbound 73ab5f36653e:v130"); Thu, 17 Nov 2022 16:38:49 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: f22bfe0a8192f136 X-CR-MTA-TID: 64aa7808 Received: from e9cb8564a00d.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 14150068-79B0-453E-90DD-2BF02F92A421.1; Thu, 17 Nov 2022 16:38:41 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e9cb8564a00d.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 17 Nov 2022 16:38:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bw/HOuDHD7XdM1oALxxpwel+PAjWCTBqJmj8zdHgdh2TwkYzvrbn/2sRjE9Wb7WrpyCmlIy3yn8qH6EniYprlPop+zyjwOTQxpPn7MqTrr0pafF89V4H699HAny8u3Gc7uqwEQ/tOS3J2tx/UUH5B1kRpOIhCYEA9u7yCEPU2HOEF8GBvkOo01ORDdDpsrjzJS7+OJhzV4IpmwEmsJUPX/su0FwHyRS61t/oHMvGcV9MNv/9KhBmWc9Si5oAVlCr5TMCEwJKkHKSlr+HkwubVhNNmpCA4w5lqkhVx6kA7ahjMNNeQcapYOsfv1jMeDHd/2BAYgK5UlWIw72GKkrhkw== 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=yGENMnWnm6smuLEiRJu1mqciJ5InpsEtVKRFIgBuDXY=; b=gG5JA12zGkUFWGoy5fTKREbOv916gw015Ve/nybUzTFy7TQJkM1TfrBetSvixKE9YJzA1p0yML7e1UXpRUfLlgjM3PNLHHEuTPhuN/0eA/e8pL9YiYh7x3ZdmROsGMr8u+SuvK73nymJKLvPUa+/OjPtuLtesl+s4VJqcL8XMgDcijdv5GK5PRnqaxaXCLgnNv73pJTp2yQ8BHIi1WFyNnM6tPXQqetXG85E23FTkExc0A/bUpoFPTKndTxa5h5BPxMKU9iWOj1x8Xepa3dF6rb6BiPKmr+Okx02qXPUVoA9KeBh2XJxnCOk3diqHY/qIi//uFSlDitShg3St0qb+w== 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 DU2PR04CA0087.eurprd04.prod.outlook.com (2603:10a6:10:232::32) by GV2PR08MB8702.eurprd08.prod.outlook.com (2603:10a6:150:b6::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.6; Thu, 17 Nov 2022 16:38:33 +0000 Received: from DBAEUR03FT034.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:232:cafe::a4) by DU2PR04CA0087.outlook.office365.com (2603:10a6:10:232::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.13 via Frontend Transport; Thu, 17 Nov 2022 16:38:32 +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 DBAEUR03FT034.mail.protection.outlook.com (100.127.142.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5834.8 via Frontend Transport; Thu, 17 Nov 2022 16:38:32 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) 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.16; Thu, 17 Nov 2022 16:38:27 +0000 Received: from e124257.nice.arm.com (10.34.105.24) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Thu, 17 Nov 2022 16:38:26 +0000 To: CC: , , Andrea Corallo Subject: [PATCH 25/35] arm: improve tests and fix vmlaldavaxq* Date: Thu, 17 Nov 2022 17:37:59 +0100 Message-ID: <20221117163809.1009526-26-andrea.corallo@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221117163809.1009526-1-andrea.corallo@arm.com> References: <20221117163809.1009526-1-andrea.corallo@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT034:EE_|GV2PR08MB8702:EE_|VI1EUR03FT007:EE_|AS8PR08MB8112:EE_ X-MS-Office365-Filtering-Correlation-Id: b86ca13a-ee6e-4655-e967-08dac8ba349c 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: fZGG/yxU6Q7zm+smY82IP5fZb1ZXe+AQM3lAtFF4QZd+qv4LdF/D4x6lTTXIaePJViLnq9etl3tgexOZ1ZR7s/Ra7UnNN07xBalMC8d5WQjV6DHjOc6C2XefqsiwGq4KY+Ve1ME3+nPC6I1ryfNSxiGXzA8UgIKgqt6toVL2AfHl/inN8tIiS/4e2Zk0CjlWZtFWuteLdKTUGAy4FO6TDZ3ijxHoWj4BJFkSndVxQ7KsSkvC2/NWt2gGZu8zLX1OQsHnXPo/sBcab/AAiOB1sYbGycKJRM0o/A6eg7/9rztLNXzljL4Xz/SYla/Udl1fCufFxmt7ZfYyz6npKfXIUMR4hiFV/sLqU5/+eQPrx0vP9O8BlbOABiRcdYWf+y4snEds6frpj5WEwlshL3CPhKrCIdVLrmqt7of0aARDUzqFXeS0pbY4zyU/Dfp9B+6BTScdeMVplE1ygpQE/gkB9U2ixEluvBb68FvPoyb5BFpTpJmQyptMryJbiKKQeRHqyvxrkz1jkTpRDbG5b9zj2FiOiompskFDALhUDQMGF489mSbsnKwiiX5WMa/9dS6Y2jlwW71ZWLAVQ8FNXKLsu3qczmCsL+4WGvrxGkMkZIsb1MB11DbfWPLFR+Vcv4Qr7C/xF223/m26zOKosgKkrD9vUV2x8Bx+/pAv2H4LqfoX6Cn35tvGqjGMl18ept7uEoq45uXrehTfbXSBVMC/v2jYTAl0oUE8fO8nop8lWFryeUdq01Z7kML3s6aMemCJMQfIQ/q+UOGlw6LBx/z62Sc4SmdO6nURF3ojYPWNDN4AzuuUymMjnlcAnKZhhUdm 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:(13230022)(4636009)(346002)(39860400002)(136003)(396003)(376002)(451199015)(46966006)(40470700004)(36840700001)(84970400001)(6666004)(478600001)(7696005)(26005)(47076005)(36756003)(2616005)(1076003)(54906003)(426003)(336012)(316002)(6916009)(83380400001)(70206006)(70586007)(40460700003)(4326008)(41300700001)(186003)(8676002)(2906002)(8936002)(44832011)(36860700001)(40480700001)(5660300002)(86362001)(356005)(81166007)(82310400005)(82740400003)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB8702 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VI1EUR03FT007.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 2f6796d7-4772-4f3f-347d-08dac8ba2a76 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7ypwiFT3ajuq2sypBSA6efJRv8vgm0AhpjBApI59ICZNEyoK+/OC3iDEYHMpyljloTcRDSMBT65KSs5DhRE2V8fkxGodjJSScODyCf3shHjAWoBfign33u6DOHzIIAucGS0wTDLJFNgOEelGLDSYChhMdsbi8R7Po4lG7QttaDo0RIC+JPl6PFwdIKLOv5/CPj6RMj/c14th6rI//13KJktbHgSblE+pvvsVtw9to9dkbnys36ekYDWjEonz5PwODiDoxvXDvqjDrB6Wy+jdabQYMPvnL/VDua84lQ0WD/0wox9iSRbvW9nReYLy9ItfPXlB8d6Pj/FR519+rXD61RmO09EBUMe8Rz90LTByVXycAG9ojyqAcz/ya+BQ+VyJ7p0LGPUdXCa3us1434hFfN42r2eZ4Easg9plrLVWMv3OgsYJxog6Cx7m6A5qJdrsDdTBbrILyeoBxneLVHG/BAxJEep1pRru7UJ64AszrbYXPPHij6yHwZteOo1S5fBGu69sthSJsz4M6tbStvw5fCgMzTiXYRy4QwSJC6dPK/QUjBP37Y+w2JT8YNpEBwOntc9ujEbuPxzuUg35xpEkbkGSAFPsKLZIgrnFX+uHA4Aq4/qjXJQpymZFuNxP5BYr32Jz+7k3x4/GuK+DOQ92zlXAx5fgB4zwUd4Z4o/PIBSl+ZBpjNY/e2KjIIR9Som8NlaBzsNpQCuRUPvxi18808zasqmvFp1aA/3VWdj8VJOLJUmdELWN2Or1LcxPyDKIw1zygflEZxlHuHTjFRLvNA== 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:(13230022)(4636009)(346002)(136003)(376002)(39860400002)(396003)(451199015)(46966006)(40470700004)(36840700001)(8936002)(5660300002)(84970400001)(41300700001)(8676002)(44832011)(4326008)(70586007)(316002)(54906003)(40480700001)(36756003)(36860700001)(7696005)(6916009)(6666004)(70206006)(26005)(82310400005)(47076005)(426003)(336012)(186003)(2906002)(478600001)(2616005)(83380400001)(1076003)(86362001)(82740400003)(81166007)(40460700003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2022 16:38:49.6954 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b86ca13a-ee6e-4655-e967-08dac8ba349c 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: VI1EUR03FT007.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB8112 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, 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: Andrea Corallo via Gcc-patches From: Andrea Corallo Reply-To: Andrea Corallo 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?1749762999632329170?= X-GMAIL-MSGID: =?utf-8?q?1749762999632329170?= gcc/ChangeLog: * config/arm/mve.md (mve_vmlaldavaq_) (mve_vmlaldavaxq_s, mve_vmlaldavaxq_p_): Fix spacing vs tabs. gcc/testsuite/ChangeLog: * gcc.target/arm/mve/intrinsics/vmlaldavaxq_p_s16.c: Improve tests. * gcc.target/arm/mve/intrinsics/vmlaldavaxq_p_s32.c: Likewise. * gcc.target/arm/mve/intrinsics/vmlaldavaxq_s16.c: Likewise. * gcc.target/arm/mve/intrinsics/vmlaldavaxq_s32.c: Likewise. --- gcc/config/arm/mve.md | 6 ++-- .../arm/mve/intrinsics/vmlaldavaxq_p_s16.c | 32 +++++++++++++++---- .../arm/mve/intrinsics/vmlaldavaxq_p_s32.c | 32 +++++++++++++++---- .../arm/mve/intrinsics/vmlaldavaxq_s16.c | 24 ++++++++++---- .../arm/mve/intrinsics/vmlaldavaxq_s32.c | 24 ++++++++++---- 5 files changed, 91 insertions(+), 27 deletions(-) diff --git a/gcc/config/arm/mve.md b/gcc/config/arm/mve.md index 714dc6fc7ce..d2ffae6a425 100644 --- a/gcc/config/arm/mve.md +++ b/gcc/config/arm/mve.md @@ -4163,7 +4163,7 @@ (define_insn "mve_vmlaldavaq_" VMLALDAVAQ)) ] "TARGET_HAVE_MVE" - "vmlaldava.%# %Q0, %R0, %q2, %q3" + "vmlaldava.%#\t%Q0, %R0, %q2, %q3" [(set_attr "type" "mve_move") ]) @@ -4179,7 +4179,7 @@ (define_insn "mve_vmlaldavaxq_s" VMLALDAVAXQ_S)) ] "TARGET_HAVE_MVE" - "vmlaldavax.s%# %Q0, %R0, %q2, %q3" + "vmlaldavax.s%#\t%Q0, %R0, %q2, %q3" [(set_attr "type" "mve_move") ]) @@ -6126,7 +6126,7 @@ (define_insn "mve_vmlaldavaxq_p_" VMLALDAVAXQ_P)) ] "TARGET_HAVE_MVE" - "vpst\;vmlaldavaxt.%# %Q0, %R0, %q2, %q3" + "vpst\;vmlaldavaxt.%#\t%Q0, %R0, %q2, %q3" [(set_attr "type" "mve_move") (set_attr "length""8")]) diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmlaldavaxq_p_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmlaldavaxq_p_s16.c index f33d3880236..87f0354a636 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmlaldavaxq_p_s16.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmlaldavaxq_p_s16.c @@ -1,21 +1,41 @@ /* { dg-require-effective-target arm_v8_1m_mve_ok } */ /* { dg-add-options arm_v8_1m_mve } */ /* { dg-additional-options "-O2" } */ +/* { dg-final { check-function-bodies "**" "" } } */ #include "arm_mve.h" +/* +**foo: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vmlaldavaxt.s16 (?:ip|fp|r[0-9]+), (?:ip|fp|r[0-9]+), q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int64_t -foo (int64_t a, int16x8_t b, int16x8_t c, mve_pred16_t p) +foo (int64_t add, int16x8_t m1, int16x8_t m2, mve_pred16_t p) { - return vmlaldavaxq_p_s16 (a, b, c, p); + return vmlaldavaxq_p_s16 (add, m1, m2, p); } -/* { dg-final { scan-assembler "vmlaldavaxt.s16" } } */ +/* +**foo1: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vmlaldavaxt.s16 (?:ip|fp|r[0-9]+), (?:ip|fp|r[0-9]+), q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int64_t -foo1 (int64_t a, int16x8_t b, int16x8_t c, mve_pred16_t p) +foo1 (int64_t add, int16x8_t m1, int16x8_t m2, mve_pred16_t p) { - return vmlaldavaxq_p (a, b, c, p); + return vmlaldavaxq_p (add, m1, m2, p); } -/* { dg-final { scan-assembler "vmlaldavaxt.s16" } } */ +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ \ No newline at end of file diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmlaldavaxq_p_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmlaldavaxq_p_s32.c index ab072a9850e..d26bf5b90af 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmlaldavaxq_p_s32.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmlaldavaxq_p_s32.c @@ -1,21 +1,41 @@ /* { dg-require-effective-target arm_v8_1m_mve_ok } */ /* { dg-add-options arm_v8_1m_mve } */ /* { dg-additional-options "-O2" } */ +/* { dg-final { check-function-bodies "**" "" } } */ #include "arm_mve.h" +/* +**foo: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vmlaldavaxt.s32 (?:ip|fp|r[0-9]+), (?:ip|fp|r[0-9]+), q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int64_t -foo (int64_t a, int32x4_t b, int32x4_t c, mve_pred16_t p) +foo (int64_t add, int32x4_t m1, int32x4_t m2, mve_pred16_t p) { - return vmlaldavaxq_p_s32 (a, b, c, p); + return vmlaldavaxq_p_s32 (add, m1, m2, p); } -/* { dg-final { scan-assembler "vmlaldavaxt.s32" } } */ +/* +**foo1: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vmlaldavaxt.s32 (?:ip|fp|r[0-9]+), (?:ip|fp|r[0-9]+), q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int64_t -foo1 (int64_t a, int32x4_t b, int32x4_t c, mve_pred16_t p) +foo1 (int64_t add, int32x4_t m1, int32x4_t m2, mve_pred16_t p) { - return vmlaldavaxq_p (a, b, c, p); + return vmlaldavaxq_p (add, m1, m2, p); } -/* { dg-final { scan-assembler "vmlaldavaxt.s32" } } */ +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ \ No newline at end of file diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmlaldavaxq_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmlaldavaxq_s16.c index e68fbd2df94..3a37e7a58a9 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmlaldavaxq_s16.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmlaldavaxq_s16.c @@ -1,21 +1,33 @@ /* { dg-require-effective-target arm_v8_1m_mve_ok } */ /* { dg-add-options arm_v8_1m_mve } */ /* { dg-additional-options "-O2" } */ +/* { dg-final { check-function-bodies "**" "" } } */ #include "arm_mve.h" +/* +**foo: +** ... +** vmlaldavax.s16 (?:ip|fp|r[0-9]+), (?:ip|fp|r[0-9]+), q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int64_t -foo (int64_t a, int16x8_t b, int16x8_t c) +foo (int64_t add, int16x8_t m1, int16x8_t m2) { - return vmlaldavaxq_s16 (a, b, c); + return vmlaldavaxq_s16 (add, m1, m2); } -/* { dg-final { scan-assembler "vmlaldavax.s16" } } */ +/* +**foo1: +** ... +** vmlaldavax.s16 (?:ip|fp|r[0-9]+), (?:ip|fp|r[0-9]+), q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int64_t -foo1 (int64_t a, int16x8_t b, int16x8_t c) +foo1 (int64_t add, int16x8_t m1, int16x8_t m2) { - return vmlaldavaxq (a, b, c); + return vmlaldavaxq (add, m1, m2); } -/* { dg-final { scan-assembler "vmlaldavax.s16" } } */ +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ \ No newline at end of file diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmlaldavaxq_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmlaldavaxq_s32.c index 7b6fea289da..155b8be70f0 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmlaldavaxq_s32.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmlaldavaxq_s32.c @@ -1,21 +1,33 @@ /* { dg-require-effective-target arm_v8_1m_mve_ok } */ /* { dg-add-options arm_v8_1m_mve } */ /* { dg-additional-options "-O2" } */ +/* { dg-final { check-function-bodies "**" "" } } */ #include "arm_mve.h" +/* +**foo: +** ... +** vmlaldavax.s32 (?:ip|fp|r[0-9]+), (?:ip|fp|r[0-9]+), q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int64_t -foo (int64_t a, int32x4_t b, int32x4_t c) +foo (int64_t add, int32x4_t m1, int32x4_t m2) { - return vmlaldavaxq_s32 (a, b, c); + return vmlaldavaxq_s32 (add, m1, m2); } -/* { dg-final { scan-assembler "vmlaldavax.s32" } } */ +/* +**foo1: +** ... +** vmlaldavax.s32 (?:ip|fp|r[0-9]+), (?:ip|fp|r[0-9]+), q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int64_t -foo1 (int64_t a, int32x4_t b, int32x4_t c) +foo1 (int64_t add, int32x4_t m1, int32x4_t m2) { - return vmlaldavaxq (a, b, c); + return vmlaldavaxq (add, m1, m2); } -/* { dg-final { scan-assembler "vmlaldavax.s32" } } */ +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ \ No newline at end of file