From patchwork Fri Jan 20 16:39:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Corallo X-Patchwork-Id: 46506 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp306098wrn; Fri, 20 Jan 2023 08:49:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXv+oy/rautUaQgikZ+UVIEIe9uiQtUV8/Vwp1WEPUufM31wHdKx+iuvp4lliN4k9fO1z8oh X-Received: by 2002:a17:906:a24f:b0:873:4ebb:94cd with SMTP id bi15-20020a170906a24f00b008734ebb94cdmr15661241ejb.10.1674233398100; Fri, 20 Jan 2023 08:49:58 -0800 (PST) Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id jg20-20020a170907971400b0086e054bfd10si24314591ejc.173.2023.01.20.08.49.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 08:49:58 -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=x+lsVSjR; 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 62858395442E for ; Fri, 20 Jan 2023 16:44:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 62858395442E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674233095; bh=Od6Uf9cC1WKiUUOl8ABs608InbQIgWV5L1nA0kw7iYw=; 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=x+lsVSjRafg7eVFP58Qq0S2I+6rUZY1NiIUtWtfUhglnsKCEJFahQcFKma77GeOxB Ia0qtHtZxsXWRkvlZsdA2/Oo2H8szvuCePdq8tNjcd5NdD2BPbSvWkX1HRKULu1gV/ RaNjKojQzKb0FV+dhnyd+zcjKvxxp489XxU16NAc= 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-ve1eur01on2054.outbound.protection.outlook.com [40.107.14.54]) by sourceware.org (Postfix) with ESMTPS id 980AF385B516 for ; Fri, 20 Jan 2023 16:40:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 980AF385B516 Received: from DU2PR04CA0237.eurprd04.prod.outlook.com (2603:10a6:10:2b1::32) by DBBPR08MB5963.eurprd08.prod.outlook.com (2603:10a6:10:205::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.27; Fri, 20 Jan 2023 16:40:52 +0000 Received: from DBAEUR03FT031.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2b1:cafe::15) by DU2PR04CA0237.outlook.office365.com (2603:10a6:10:2b1::32) 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:52 +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 DBAEUR03FT031.mail.protection.outlook.com (100.127.142.173) 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:52 +0000 Received: ("Tessian outbound 43b0faad5a68:v132"); Fri, 20 Jan 2023 16:40:52 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4ee48a6f9a7f1907 X-CR-MTA-TID: 64aa7808 Received: from 30bb3cc4498b.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 7C48CAD9-A2D0-49AC-A853-A06CA97E111F.1; Fri, 20 Jan 2023 16:40:45 +0000 Received: from EUR02-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 30bb3cc4498b.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 20 Jan 2023 16:40:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YG+gEzb+N+yeRbCW4XzGNjnZS8jxbvey0R9RjP5PRsH7ojBx2OMmR5VyMRKf+45mPZbMRSdJtSquKAszrzCvPRUm1uPbqm+BDA0v6VNRwCReH1oUkf4Ev98vngjuhucdabiVdR/cQclgYqrn9rgR3Vjkb/+u9RvMrHWl5BYMDYCSbdMSON5AQU5sG0MFx0fM8YKdJb6SIfC7pWgOd93R53YrqqNVQ63QeDAq4WKeI7p6gYHTlI1uCUwtnbwFIWYYhYc07kbZdRRT6W5MRUsO3smd0heeiA94ORywevWaXO1byPjvVt0Ak1NafDL+H55FdsXbCN4USTTBXIhhDsu2gw== 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=Od6Uf9cC1WKiUUOl8ABs608InbQIgWV5L1nA0kw7iYw=; b=UEW4edu780henlCKSCZxRppqb79y/I7HGX0zWWz7zROVmSXaB0TMlNUX9j450B8D7C55gYs+MSst2dc644QezK4FCQOa2CwBe1Wv0bj+rdx5wSOIA8ZmnBG8NpzZ+jn9oPkvxzRtskwU9rCcE/vfrShOD8IwzFmP2z4SEJVNNfFdjj5JtW87X7bc2MsWuQANGMnfsoP+DYbPJjWGoX2qyLOGzKSUeY18Ujk9dY87PAEmpjH0xcJ+YLf6RypJYqBD/sRtUaEgq+o0c4a6kBwToayCbj87JegQkzZE7VB5EC8bIs6LuCM9bOPfFAddB6bvy4LR/uW/U+fZRP3kwbbS0w== 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 AM7PR03CA0006.eurprd03.prod.outlook.com (2603:10a6:20b:130::16) by PAXPR08MB7418.eurprd08.prod.outlook.com (2603:10a6:102:2bb::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.27; Fri, 20 Jan 2023 16:40:42 +0000 Received: from AM7EUR03FT008.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:130:cafe::33) by AM7PR03CA0006.outlook.office365.com (2603:10a6:20b:130::16) 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:42 +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 AM7EUR03FT008.mail.protection.outlook.com (100.127.141.25) 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:42 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) 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.16; Fri, 20 Jan 2023 16:40:25 +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:24 +0000 To: CC: , , Andrea Corallo Subject: [PATCH 11/23] arm: improve tests for vqdmladhq* Date: Fri, 20 Jan 2023 17:39:36 +0100 Message-ID: <20230120163948.752531-12-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: AM7EUR03FT008:EE_|PAXPR08MB7418:EE_|DBAEUR03FT031:EE_|DBBPR08MB5963:EE_ X-MS-Office365-Filtering-Correlation-Id: 3ba6fe9a-e571-4207-670b-08dafb051849 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: 982E+J9OApOmyrRP/HUHNRsD4P0Fj5po6ncI2xmJ54PwG17H7wGFi1xl93393hXjPwSzgW9tWsmQ3wEVoG7mrHfRTnYV8mdMtOXGjCpv3wvcGUlF1a23vQQRC5DPoreCxbh9ydwfX200LnIvoV8WnrOMrWI3PRyVUk2e6mOXUPTmjkl1Bew8QywG1YHziFyRLXwyG7qhaPX3bOeRGsD5gG3xaZb8Mv/vhG+SsgUiDmJl56bPGNEjTHA9p0rB9ndqtw8cifq4TT5Gcy1uYqdgi/TjcPkg5Wk1xKiq28xS6gYc2P3wUrgwM2OGU40WTpC0+INMqdSgl28bsPPoF7B+YhIHfvsY0v2s++0LNic6SfBx/93NsN3MST4dBhZYLwvuW7RYooLpV8Bnumua0Q0h9vSpdwyLnUwKW0nAfjvQYuNRl8E7evy6K3eJodgNwRsr6et4hDL/D9RSqgKCxQat4QYtUUz3NUp97WYyqUUSM9Nt6yw56VUBm/oMfbLVoqIZQYeKYYaSTB7qWCfpgThnC9JgS6swxIvoSWSS++yT9iGy4c7AW7mZpqWKBrTrpleI3DL7am01z3xGV8uk/gdd5unoyH57y1VtiTUOkMV5vugwKJm1eHo6ljfZAOtMZn60OwMknn3dge6GNRrthWEPE2KQ6VHlZPMo73tuIlCPwvEbyW0DACaQavFRdlwyDyd1zxk9YG8M7I74BAqh23utPXnik3B08m3t5mAOswcBxBopZ7zTEcdwYVZ7ZrXpfvrfNSn2kBIO8PjVmaSt5nxOTsODbX8gz0tfuYz7akwItpBQYF8Qx8kpaRYFlv2ylwqP 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)(396003)(39860400002)(376002)(136003)(346002)(451199015)(40470700004)(36840700001)(46966006)(54906003)(316002)(336012)(6666004)(41300700001)(82310400005)(70586007)(4326008)(6916009)(8676002)(36756003)(70206006)(83380400001)(86362001)(47076005)(426003)(81166007)(356005)(36860700001)(40480700001)(82740400003)(478600001)(7696005)(186003)(2616005)(26005)(40460700003)(1076003)(2906002)(44832011)(84970400001)(5660300002)(8936002)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB7418 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT031.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: f2e2bd0b-b42c-4b90-353a-08dafb051232 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xw2PIcvBJNlGWGH4bUN4lmEovePHBuHM+YG+JNG0QRVbEyxOtKNCo1NMom/D4ekJ+x/lBu1R6XS5EhHo671lx1PLnlkmCd02ZwS14NGWJk6v7cS+KC1+2/m1azDugqKT0znvUw472WKPgEAhd5IYbj2lw3yNh7shxVyVqtRpywI3glatQ+FngZdWYG8iEUsp/MDIRZQFv4tEAsFBYKTCC9+UNSoL/2gdOiVIANnHRIb9Ccucv+/pYqR0w0YtFwX7HSBDBDm+h6B088vtDOlJPB91Ydoa1oJWr4mt/Sm1BZWGMb++Z/8yTD4Ccwt3Xmh+BsrCbvnz0V5VCl+OGqFyAYCAx6kOn1bJd7G7u9DVmsgg9caH/AQTffg8ZYm9QH7EnKpItJq4rWFKwJsCtrIpTIM/5SBBNlR0Z/ZdTdHepwzJIOU0wKnc4VROuAPyQ/3GjdhkFoSo5op1WlFr0F38TOHLu39/feHjbLi5yCWBK8m2gk+Yda3i9KRMLSpy3k6xlqBM8NsGYoGU17dBekVuoXqq7cvXgpVv78TEaIXIQQvD+H/9NYfviot52/OqQCkDWCMep4VuvQEgyNWpJxde8tQ11SzQe7M2QA9+f6EV4cxTBTylIZ93nMPE30o81V148HZcFz2a5TBUZoLAMRc/U/q6gcvuV/j7042SYNrPdx9z8OQl6IoVa8vHEPVBimj36BU1sGxqz1suaLJ3e04d2G3UaZalwCqw7tH+ER94qhYYJePWGa62OHQFE9jJZg1NfOG+ZsiRIJ/wiVT2QOfdaA== 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)(396003)(376002)(39860400002)(136003)(346002)(451199015)(46966006)(36840700001)(40470700004)(82310400005)(84970400001)(36756003)(2616005)(40480700001)(2906002)(316002)(70586007)(336012)(70206006)(7696005)(426003)(6666004)(6916009)(47076005)(8676002)(4326008)(54906003)(5660300002)(44832011)(83380400001)(36860700001)(1076003)(186003)(40460700003)(478600001)(26005)(8936002)(81166007)(86362001)(41300700001)(82740400003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2023 16:40:52.7218 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3ba6fe9a-e571-4207-670b-08dafb051849 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: DBAEUR03FT031.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB5963 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?1755560959477321756?= X-GMAIL-MSGID: =?utf-8?q?1755560959477321756?= gcc/testsuite/ChangeLog: * gcc.target/arm/mve/intrinsics/vqdmladhq_m_s16.c: Improve test. * gcc.target/arm/mve/intrinsics/vqdmladhq_m_s32.c: Likewise. * gcc.target/arm/mve/intrinsics/vqdmladhq_m_s8.c: Likewise. * gcc.target/arm/mve/intrinsics/vqdmladhq_s16.c: Likewise. * gcc.target/arm/mve/intrinsics/vqdmladhq_s32.c: Likewise. * gcc.target/arm/mve/intrinsics/vqdmladhq_s8.c: Likewise. --- .../arm/mve/intrinsics/vqdmladhq_m_s16.c | 34 ++++++++++++++++--- .../arm/mve/intrinsics/vqdmladhq_m_s32.c | 34 ++++++++++++++++--- .../arm/mve/intrinsics/vqdmladhq_m_s8.c | 34 ++++++++++++++++--- .../arm/mve/intrinsics/vqdmladhq_s16.c | 24 +++++++++++-- .../arm/mve/intrinsics/vqdmladhq_s32.c | 24 +++++++++++-- .../arm/mve/intrinsics/vqdmladhq_s8.c | 24 +++++++++++-- 6 files changed, 156 insertions(+), 18 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_m_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_m_s16.c index 51cdadc9ece..aa9c78c883b 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_m_s16.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_m_s16.c @@ -1,23 +1,49 @@ /* { 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: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vqdmladht.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int16x8_t foo (int16x8_t inactive, int16x8_t a, int16x8_t b, mve_pred16_t p) { return vqdmladhq_m_s16 (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqdmladht.s16" } } */ +/* +**foo1: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vqdmladht.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int16x8_t foo1 (int16x8_t inactive, int16x8_t a, int16x8_t b, mve_pred16_t p) { return vqdmladhq_m (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqdmladht.s16" } } */ +#ifdef __cplusplus +} +#endif + +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ \ No newline at end of file diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_m_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_m_s32.c index 7e43fed1503..4694a6f9ec5 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_m_s32.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_m_s32.c @@ -1,23 +1,49 @@ /* { 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: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vqdmladht.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int32x4_t foo (int32x4_t inactive, int32x4_t a, int32x4_t b, mve_pred16_t p) { return vqdmladhq_m_s32 (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqdmladht.s32" } } */ +/* +**foo1: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vqdmladht.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int32x4_t foo1 (int32x4_t inactive, int32x4_t a, int32x4_t b, mve_pred16_t p) { return vqdmladhq_m (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqdmladht.s32" } } */ +#ifdef __cplusplus +} +#endif + +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ \ No newline at end of file diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_m_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_m_s8.c index adf591041e3..c8dc67fdd12 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_m_s8.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_m_s8.c @@ -1,23 +1,49 @@ /* { 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: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vqdmladht.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int8x16_t foo (int8x16_t inactive, int8x16_t a, int8x16_t b, mve_pred16_t p) { return vqdmladhq_m_s8 (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqdmladht.s8" } } */ +/* +**foo1: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vqdmladht.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int8x16_t foo1 (int8x16_t inactive, int8x16_t a, int8x16_t b, mve_pred16_t p) { return vqdmladhq_m (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqdmladht.s8" } } */ +#ifdef __cplusplus +} +#endif + +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ \ No newline at end of file diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_s16.c index 2dc453bdd9a..74ebbfa8b97 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_s16.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_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: +** ... +** vqdmladh.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int16x8_t foo (int16x8_t inactive, int16x8_t a, int16x8_t b) { return vqdmladhq_s16 (inactive, a, b); } -/* { dg-final { scan-assembler "vqdmladh.s16" } } */ +/* +**foo1: +** ... +** vqdmladh.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int16x8_t foo1 (int16x8_t inactive, int16x8_t a, int16x8_t b) { return vqdmladhq (inactive, a, b); } -/* { dg-final { scan-assembler "vqdmladh.s16" } } */ +#ifdef __cplusplus +} +#endif + +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ \ No newline at end of file diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_s32.c index 06f3204e47e..796de4df283 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_s32.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_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: +** ... +** vqdmladh.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int32x4_t foo (int32x4_t inactive, int32x4_t a, int32x4_t b) { return vqdmladhq_s32 (inactive, a, b); } -/* { dg-final { scan-assembler "vqdmladh.s32" } } */ +/* +**foo1: +** ... +** vqdmladh.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int32x4_t foo1 (int32x4_t inactive, int32x4_t a, int32x4_t b) { return vqdmladhq (inactive, a, b); } -/* { dg-final { scan-assembler "vqdmladh.s32" } } */ +#ifdef __cplusplus +} +#endif + +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ \ No newline at end of file diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_s8.c index 79670b8b153..d585f5fac20 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_s8.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhq_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: +** ... +** vqdmladh.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int8x16_t foo (int8x16_t inactive, int8x16_t a, int8x16_t b) { return vqdmladhq_s8 (inactive, a, b); } -/* { dg-final { scan-assembler "vqdmladh.s8" } } */ +/* +**foo1: +** ... +** vqdmladh.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int8x16_t foo1 (int8x16_t inactive, int8x16_t a, int8x16_t b) { return vqdmladhq (inactive, a, b); } -/* { dg-final { scan-assembler "vqdmladh.s8" } } */ +#ifdef __cplusplus +} +#endif + +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ \ No newline at end of file