From patchwork Fri Jan 20 16:39:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Corallo X-Patchwork-Id: 46489 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp302444wrn; Fri, 20 Jan 2023 08:42:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXvPMhKhR0JVYHNJ2eS/pQQZUeZl7G8aA4FKNkb1eINrOhgXi1F+B1zRxRS6A2HrI03jhOm2 X-Received: by 2002:a17:906:6bc6:b0:7c0:f684:9092 with SMTP id t6-20020a1709066bc600b007c0f6849092mr15308291ejs.37.1674232933132; Fri, 20 Jan 2023 08:42:13 -0800 (PST) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id sh8-20020a1709076e8800b0087329ff5940si12875274ejc.770.2023.01.20.08.42.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 08:42:13 -0800 (PST) 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="v/Lrqc95"; 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 9933838543A7 for ; Fri, 20 Jan 2023 16:41:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9933838543A7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674232892; bh=FhJspI0UqeEvrSMacAU7TSXlvsPTTwMFU3utwJHSQtw=; 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=v/Lrqc95ILWQ6D4QeXO44c99kxtRMl08ZrT/7+ftDbXoCR6TKu+zC4Zpdgba9zlbQ U1gJvYWI1Mk4d1bTSO0rYYeF2/FqT3k0HJsmJgkbt6yCVi5kxPPGAPzHP1d6LGzZDl t83JJRL+pWoAlA/chVzGNPOkoMtfIir2YLkPEnaE= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2054.outbound.protection.outlook.com [40.107.249.54]) by sourceware.org (Postfix) with ESMTPS id 3547D3858D20 for ; Fri, 20 Jan 2023 16:40:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3547D3858D20 Received: from AS9PR06CA0605.eurprd06.prod.outlook.com (2603:10a6:20b:46e::8) by PA4PR08MB7570.eurprd08.prod.outlook.com (2603:10a6:102:26f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.24; Fri, 20 Jan 2023 16:40:36 +0000 Received: from AM7EUR03FT039.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:46e:cafe::57) by AS9PR06CA0605.outlook.office365.com (2603:10a6:20b:46e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.27 via Frontend Transport; Fri, 20 Jan 2023 16:40:36 +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 AM7EUR03FT039.mail.protection.outlook.com (100.127.140.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6023.16 via Frontend Transport; Fri, 20 Jan 2023 16:40:36 +0000 Received: ("Tessian outbound 3ad958cd7492:v132"); Fri, 20 Jan 2023 16:40:35 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: d93954dbe3c09db4 X-CR-MTA-TID: 64aa7808 Received: from 8d34cea2ad35.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id FB966722-B894-4524-88C5-90C72AE129A8.1; Fri, 20 Jan 2023 16:40:29 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 8d34cea2ad35.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 20 Jan 2023 16:40:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AIoa1tOarXOiiLDzjmRSC4AI3GHs69Uhae9NZ+l8NveuzhpLhoQA+D61XpEnNCglO+dDzAR61yCRGg16lCEt8RUEAaqYa51es0ImZTR6QjcJd4x7tSwzKgGJIavSORKoQ6XXWclSgJxQr/Yevi9em7dnM+9ryiq3YCsg9/dJC1a+tcaHN7tocTnuL8j5PWq1cIESyskPygF+301dJZvPycoz1cs+kE2F+b6n+m4X46EB6XEj4fd7LNMMi7UZ6gUcRHXK1PdiqHiePIQm3KWGUTB/xRqRIsjBpgqHU3A8508eKjrMMHqDichSgM3JHGLT1qHaa1g1O84sRXNxTMQtwA== 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=FhJspI0UqeEvrSMacAU7TSXlvsPTTwMFU3utwJHSQtw=; b=MQZjVNdg6bVjlOsUbEikvIISbvX8UdscB821TNWU5WZKssFetvIWdgIFwDw1GJLCh+jpzqxRYdjf9l5SXv7IvJQvWqEn99OMKK5o59po+gU+2mhg+fz3Cx/oMSzHR4K1KQIJ+JSskYtf0sKxb8SYB34gO162qvzS9nFbVgm1hLvFI7bh4bD2s6rn2tSBa7eHN/+v+4QOWz1+ATr/VcIS4UUWgZ6PjfNzjs7yFZEceidTLOp12xRS9QdMjQf/68rXAUkZCkgrz1O1+845vXBDlQt1elrzXlJD7ZzP//3A+nDQf0/NbZRn6I0qAPY6jZqyVZWULNlj/5CGrHg9XHYWhQ== 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 DUZPR01CA0012.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::14) by PA4PR08MB7458.eurprd08.prod.outlook.com (2603:10a6:102:2a5::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.25; Fri, 20 Jan 2023 16:40:28 +0000 Received: from DBAEUR03FT008.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:3c3:cafe::dd) by DUZPR01CA0012.outlook.office365.com (2603:10a6:10:3c3::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.25 via Frontend Transport; Fri, 20 Jan 2023 16:40: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 DBAEUR03FT008.mail.protection.outlook.com (100.127.142.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6023.16 via Frontend Transport; Fri, 20 Jan 2023 16:40:27 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) 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; Fri, 20 Jan 2023 16:40:27 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) 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.16; Fri, 20 Jan 2023 16:40:26 +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; Fri, 20 Jan 2023 16:40:26 +0000 To: CC: , , Andrea Corallo Subject: [PATCH 15/23] arm: improve tests for vqrdmlashq* Date: Fri, 20 Jan 2023 17:39:40 +0100 Message-ID: <20230120163948.752531-16-andrea.corallo@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230120163948.752531-1-andrea.corallo@arm.com> References: <20230120163948.752531-1-andrea.corallo@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT008:EE_|PA4PR08MB7458:EE_|AM7EUR03FT039:EE_|PA4PR08MB7570:EE_ X-MS-Office365-Filtering-Correlation-Id: e4964008-cad3-40f1-31fc-08dafb050e68 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: KFPJfLC7jZmKu6joA54/TP8Cp0WalM4Plh2PVE8Z3eKfowb3Zupol1/IrSY8BqVSqE7eoZ5w8SOawtc+lWd8sqGxyxK6WRE0m56bNkQq9nLO2iONU9KBaaulm+a3KiY0qxz4PwQoM3EkcYF9l0gsuM9Uc0EwSEz/ZChTC0fxcJ4Tepjw4HHhHHjqpGaklAs5rAknZefZ5ZhMIXM/nti/PHlflmpTl1ccE46+8lvx7Dh8N/lzYXX8vxpmlhJqcE2BFzupMaytUaUOgD2T6iMCw45aMxDAHnSvGzI8p2C1vDsIYgzS8Q4qvFbqMSmqXYv9e4ZqNYxiZOXLMA6hGxjsKmY/EQa58b9puHXkG7mIXAomDKHCXXH/MgOIWqM/dE3zPGevcB+5ICSKrZpNQ2juCiI+itE2NO8ij8BYY9nOM2o7X83T66L+77cM24Ask+mnlo1ScQ9x1MB3KextrwD6vY5AeaMpy31S1S9o0YK/EAX3iZGSsgnpeNmr9ldQ4+IYAafDlPH8rt1qajeZ4bbDNwOR0+N8TxPyBhPDkfge79RwNOgf6NNHnGXJPmW6vbGnBF33noLfyR8UPok64OzzBadE5AvVh8fAZ7sGMpBRfTp+BucSjPt1kwtmmfqgth0M7aYSTl1Is9YVaId6i7w5lsT/B+ajrcksXoNKXT8FWKM3wyeVHVS5P+c/2H7wIv8qsLG9L4VKoN40g0n9HhS81FRbe04KNqJ+M9ZL2XRAUweTmnE7SYZxfurP6+0aSdYNu6rdeIIGBbjMhhvF5EFI2hOg2LiE2D0X3NzC3OqIGlkUXAcl5/nXD9Sv2MsT2qNZ 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)(376002)(136003)(396003)(451199015)(46966006)(40470700004)(36840700001)(82310400005)(426003)(40460700003)(36756003)(40480700001)(47076005)(4326008)(6916009)(41300700001)(5660300002)(83380400001)(1076003)(70586007)(26005)(44832011)(186003)(478600001)(336012)(8936002)(6666004)(316002)(7696005)(54906003)(86362001)(70206006)(356005)(2616005)(8676002)(36860700001)(2906002)(81166007)(82740400003)(84970400001)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB7458 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT039.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: fee596ae-88ed-46b5-e073-08dafb050975 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7pRY/FGy8h2SlmvoyRpk6ykyTGlNefS7WM3HKOR5W85a0U7Bs7ZdGN8HCN8BHi1mh+oclTPKEb3IryFjrImjwupg13t7YDDgUW5CfMbzxlPGFGN7LgxqYIUrf9Eo6PNe2nOTgOquJVV+hc/f2ki0i8kDvrlI6SlkELBq37qFmaf64pKQ+9H4iHhYxO91KvlUWTWV3xefBlPsBObgbj9PekwdFdT+3n4Z/6CR4/NHVAg8553Hxjw+OX6olPXUf5MH9Opab+H+2QAXybaRpCLuMDWoxAGLOQsecf4eaQbPRTn0K6rHNuTZ6rd09WkiKCFgS8PEKecGL3os5ZYlPiTHTle3+fvJnmWb0AhURT5CGG9AGMWHvtHSEwNRpb0bLPCuv2/5vdkVc06ZrLi50ezETrEt/uwzY59rRCR342sJpW8f/R2fxcBYVAQJt2qKVzg0UtY6RK5BUjhBUb0aAV+GcIJCuuRSiECnr4YWmZsCi/8JgCcYgQz4utLxjFwBoPy5ZREDE1IS+kmYU6o1QUqBQgSKzOdGpmIenJ3Zd3UvvnbpoT9OlfWhdZdJI4P0y3FWzgUQ6VRa116JXH8rg4jLIbLqtir0lbfRxYB/2K8gFnGLUrJPNuutlgIj7D3kj5EqeA0iGKpqqhqWICVP0iwp2kzh3Eh2Vm0SkSPs1wFh8yaDPmAMD7ECkp67hLVSjDvlssYUlk7PPd12B4SRd9YyI6UFxw4UgvRjG83Z4uEeyQfpXjJvxwBYBnrzuhkVJMQHgZVgVm8BJ0HJmZyyjnrnGg== 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)(39860400002)(136003)(376002)(346002)(396003)(451199015)(36840700001)(46966006)(40470700004)(84970400001)(36756003)(82310400005)(336012)(6916009)(2616005)(70206006)(41300700001)(1076003)(4326008)(70586007)(8676002)(186003)(26005)(44832011)(40480700001)(86362001)(2906002)(478600001)(83380400001)(426003)(47076005)(54906003)(7696005)(8936002)(316002)(36860700001)(6666004)(40460700003)(81166007)(82740400003)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2023 16:40:36.0839 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e4964008-cad3-40f1-31fc-08dafb050e68 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: AM7EUR03FT039.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB7570 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?1755560472082468322?= X-GMAIL-MSGID: =?utf-8?q?1755560472082468322?= gcc/testsuite/ChangeLog: * gcc.target/arm/mve/intrinsics/vqrdmlashq_n_s16.c: Improve test. * gcc.target/arm/mve/intrinsics/vqrdmlashq_n_s32.c: Likewise. * gcc.target/arm/mve/intrinsics/vqrdmlashq_n_s8.c: Likewise. --- .../arm/mve/intrinsics/vqrdmlashq_n_s16.c | 32 +++++++++++++++---- .../arm/mve/intrinsics/vqrdmlashq_n_s32.c | 32 +++++++++++++++---- .../arm/mve/intrinsics/vqrdmlashq_n_s8.c | 32 +++++++++++++++---- 3 files changed, 78 insertions(+), 18 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlashq_n_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlashq_n_s16.c index 8ff8c34d529..2710f2f0442 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlashq_n_s16.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlashq_n_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" +#ifdef __cplusplus +extern "C" { +#endif + +/* +**foo: +** ... +** vqrdmlash.s16 q[0-9]+, q[0-9]+, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +*/ int16x8_t -foo (int16x8_t a, int16x8_t b, int16_t c) +foo (int16x8_t m1, int16x8_t m2, int16_t add) { - return vqrdmlashq_n_s16 (a, b, c); + return vqrdmlashq_n_s16 (m1, m2, add); } -/* { dg-final { scan-assembler "vqrdmlash.s16" } } */ +/* +**foo1: +** ... +** vqrdmlash.s16 q[0-9]+, q[0-9]+, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +*/ int16x8_t -foo1 (int16x8_t a, int16x8_t b, int16_t c) +foo1 (int16x8_t m1, int16x8_t m2, int16_t add) { - return vqrdmlashq (a, b, c); + return vqrdmlashq (m1, m2, add); +} + +#ifdef __cplusplus } +#endif -/* { dg-final { scan-assembler "vqrdmlash.s16" } } */ +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ \ No newline at end of file diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlashq_n_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlashq_n_s32.c index 02583f0627b..5fefc3938c5 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlashq_n_s32.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlashq_n_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" +#ifdef __cplusplus +extern "C" { +#endif + +/* +**foo: +** ... +** vqrdmlash.s32 q[0-9]+, q[0-9]+, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +*/ int32x4_t -foo (int32x4_t a, int32x4_t b, int32_t c) +foo (int32x4_t m1, int32x4_t m2, int32_t add) { - return vqrdmlashq_n_s32 (a, b, c); + return vqrdmlashq_n_s32 (m1, m2, add); } -/* { dg-final { scan-assembler "vqrdmlash.s32" } } */ +/* +**foo1: +** ... +** vqrdmlash.s32 q[0-9]+, q[0-9]+, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +*/ int32x4_t -foo1 (int32x4_t a, int32x4_t b, int32_t c) +foo1 (int32x4_t m1, int32x4_t m2, int32_t add) { - return vqrdmlashq (a, b, c); + return vqrdmlashq (m1, m2, add); +} + +#ifdef __cplusplus } +#endif -/* { dg-final { scan-assembler "vqrdmlash.s32" } } */ +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ \ No newline at end of file diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlashq_n_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlashq_n_s8.c index 0bd5bcac71f..df96fe85213 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlashq_n_s8.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlashq_n_s8.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" +#ifdef __cplusplus +extern "C" { +#endif + +/* +**foo: +** ... +** vqrdmlash.s8 q[0-9]+, q[0-9]+, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +*/ int8x16_t -foo (int8x16_t a, int8x16_t b, int8_t c) +foo (int8x16_t m1, int8x16_t m2, int8_t add) { - return vqrdmlashq_n_s8 (a, b, c); + return vqrdmlashq_n_s8 (m1, m2, add); } -/* { dg-final { scan-assembler "vqrdmlash.s8" } } */ +/* +**foo1: +** ... +** vqrdmlash.s8 q[0-9]+, q[0-9]+, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +*/ int8x16_t -foo1 (int8x16_t a, int8x16_t b, int8_t c) +foo1 (int8x16_t m1, int8x16_t m2, int8_t add) { - return vqrdmlashq (a, b, c); + return vqrdmlashq (m1, m2, add); +} + +#ifdef __cplusplus } +#endif -/* { dg-final { scan-assembler "vqrdmlash.s8" } } */ +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ \ No newline at end of file