From patchwork Fri Jan 20 16:39:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Corallo X-Patchwork-Id: 46498 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp303827wrn; Fri, 20 Jan 2023 08:45:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXvrtht1WIQc5gbkpkFQBo+jai/XsL1Ffq2KhmFg+OPA8BcGJaXxe04DN+twZez2zs4/WGFX X-Received: by 2002:aa7:d691:0:b0:49b:53dc:fe0 with SMTP id d17-20020aa7d691000000b0049b53dc0fe0mr15108661edr.40.1674233104832; Fri, 20 Jan 2023 08:45:04 -0800 (PST) Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id w20-20020a056402269400b0049e338fe4c9si16642600edd.460.2023.01.20.08.45.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 08:45:04 -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=LXfkX4s6; 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 6EBC83895FF5 for ; Fri, 20 Jan 2023 16:42:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6EBC83895FF5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674232969; bh=EsnoiZXz+RKm2SVXzEbWyHoS4/TSjFFO0VF1WpNFXl0=; 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=LXfkX4s67S5hb+Uhpa7c5smBAvjAYaJ6oTae89UOHEoPDCHfkp9gkv/PQqQsoXf1s dX1g2lC6zFMwj1AfF37opRiQOioz4kNHbMO+5WSIfXnnRXFwWcU1wd8Qf5ClCAAH+Y ipctDVXpsrltoxFj3uueBjwyCNNIXXTJfrV4xr2g= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2086.outbound.protection.outlook.com [40.107.20.86]) by sourceware.org (Postfix) with ESMTPS id A18F13857BB3 for ; Fri, 20 Jan 2023 16:40:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A18F13857BB3 Received: from DU2PR04CA0246.eurprd04.prod.outlook.com (2603:10a6:10:28e::11) by DB5PR08MB10233.eurprd08.prod.outlook.com (2603:10a6:10:4aa::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:39 +0000 Received: from DBAEUR03FT012.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:28e:cafe::5e) by DU2PR04CA0246.outlook.office365.com (2603:10a6:10:28e::11) 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:39 +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 DBAEUR03FT012.mail.protection.outlook.com (100.127.142.126) 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:39 +0000 Received: ("Tessian outbound 0d7b2ab0f13d:v132"); Fri, 20 Jan 2023 16:40:39 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 573e7d23eb2fec5b X-CR-MTA-TID: 64aa7808 Received: from ba173e938613.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id A46C3875-472A-4FB7-AB88-9D617091F9B5.1; Fri, 20 Jan 2023 16:40:32 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id ba173e938613.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 20 Jan 2023 16:40:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ia3h3KvmUHoFbEQKaGBOTnZJOyPFLFMHg8/9yJGHH1+bEhRN9uKp1KCMHegn4An2CPrrXQNSgfZUBakyADk8N5cYu9O1SBiqbDW+wkmWALAnJCyXCqI5wF8geztGiXXMDmNPN7ogp64fwATjeSQ00phtN4SuxgOlnUKdvsBCrdKsX+Q14rmaHM17Q2iEnFsmbtF+LSSWKFD5GEPWBR0Y7iuR2C4iIGy+IKi7zmZKpjl7o+hsbKcIDBpy0PMRUi75ro/y5GCZpDzZjPF5nGDbJC0+N2OIqCNc/DkdhsXHubRZzJSetY3JVVqZR8PutV02XryZqK2RLBtlNfVeNWk0gg== 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=EsnoiZXz+RKm2SVXzEbWyHoS4/TSjFFO0VF1WpNFXl0=; b=EPv+8bdBd/5lfg/hcHc0KlzNcXSVL7Y+tDoW+Hc46Q6zh28Gwmju91/55piteRnxBmDkcW1t+kZPB4Hf5GJe/eU8MOeZl+HFAIhPZt40WRw2u+A9Modl1cp9pBBviDe9bps7VEbUcAI05nGFcIBlSpSepwyzlPoBQxXqwWpuiRaxb1VlJ38hIZyO0dYYrJzLxMXejvYlm0s0LkwNqVvQ10tqInkNi8EyN2/fGcFz9E9vJ6Ym3Yiq0u06JDxdYcXgtAhiadWvsIDSeii4CauGyl1t3/orH1WEAnSVy1GKteZ9ctJYk6PUx2ciAk8rYj/3Ru6Jk//zHw62/vrcU6CYEw== 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 DUZPR01CA0011.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::19) by DB9PR08MB8228.eurprd08.prod.outlook.com (2603:10a6:10:39d::7) 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:29 +0000 Received: from DBAEUR03FT008.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:3c3:cafe::8e) by DUZPR01CA0011.outlook.office365.com (2603:10a6:10:3c3::19) 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: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 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:29 +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; Fri, 20 Jan 2023 16:40:28 +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:27 +0000 To: CC: , , Andrea Corallo Subject: [PATCH 18/23] arm: improve tests for vqrdmlsdhq* Date: Fri, 20 Jan 2023 17:39:43 +0100 Message-ID: <20230120163948.752531-19-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_|DB9PR08MB8228:EE_|DBAEUR03FT012:EE_|DB5PR08MB10233:EE_ X-MS-Office365-Filtering-Correlation-Id: 9bd70c62-b9ca-4e15-a44d-08dafb051054 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: wAFnAHlljUVOZuKE+/7aXFr6/4IToMd1YSE5Stye6dlJy+UJO4RLHE0GmwVYVFx2uDz4zMy7YbWWXexHZ3uQnsDVqDylW1L0CQ6FueWV7S4X8nRkirTiQYD/G/RSbwZANXcVg0SQLWYHA757/l6olmxruL/mPFj0TUOIBsYEeIcM9ddOgYGtMxdsQi2VEEi4RYqzkngsTs9ntB/NKkwdaWPxwJ2CqOt/XrhI1yOCall0g64VUzE3ap+ORhlkl15nLCznfPn+fx1fs4jQP+sDJh7GJO/PGs+jBzil9AigpZqiOEaBsnihb6RRyoOKttEjWnleIcshKchATlGRWfeUrZVi7tWNK71TZwwtnHYLWT1Ep1HkRVOFd1kvJ1gbZrdf2mzjEly+iqK5ybrA5zGo1ICsEWGttKLL7oiHSyAbreVePIAjP/0mKOD1vNrQKCrUZIXRiqeGYcjR61aXSbA8EygEPMFHhRc5GVyVL9nnIr2E1r0ytcX8fztILNNsPQie3cZGJwFJh9M803o52wkQ3OQhPpd5wrAo68dHJdJEq+/UTeCxWnAC+swoBboT2BC5jWJJJ4JQ3qxhXBeoy370uA6JmVepX1MzLADKX/y3g2N3L757g55Ifch43hLbUixCdt8UVN2gehEcc+W6kdej/sH4LHhR+5bHqQszlmW692E6J0HESxXEJ+PJqCtFJLT8B4h5zTKZAjaHRRb1DHmISqptzXfAZbn41GAf2x6kMd+cZK4EDbyvO/lYgEMko7taJwYZdy1YEWLYgWsy9p7RQ6ZxZWn+q1y0S39rBpgo/AA3kXtgDP6d/WxMXzYglsrj+xf1vvaKXXM1Axkzzm0cUZ9LCQQubN1P++UW1aDKRMc= 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)(346002)(376002)(39860400002)(136003)(451199015)(46966006)(36840700001)(40470700004)(478600001)(40460700003)(82740400003)(8936002)(7696005)(356005)(2616005)(5660300002)(4326008)(6916009)(70586007)(8676002)(81166007)(1076003)(70206006)(316002)(186003)(26005)(36756003)(41300700001)(6666004)(2906002)(40480700001)(83380400001)(86362001)(84970400001)(336012)(36860700001)(44832011)(54906003)(426003)(47076005)(82310400005)(121003001)(133343001)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB8228 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT012.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 34b96949-1f54-47b0-0da7-08dafb050a4a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CbDYOxYSxUsCMPjAL1aoq2ho5b2BsmP9bIRQ2oVenFSun/34+LH5nWnJ9LhpmHp+C0xiBRtlshCUkLJ+TkjY34JddthcCI+CCefwglIa4UsXipFSx+q6gtlI+kqPQKGWspMc18+JzUy4M4+5doERZwJ3KO5fCjgtjGNBCeDlh4T5jbreA2uAhZn9d0GNzAb5AWDjQqAa+UujMU1xAOZKHVN2y1oDk8jIhR4g29oPY0Ua9Zr4GH1Bwsfxg+faIGKAJ4tWOC5YzjQn1vWveT1NUTZ41ZDemBkaKtbyO+KpYmuj7DdGrsBVrp3u1KSuN+yh9UOCgccL/u0bJlmFxLfhcWx9TOSDLCx/K0EDRPU9L9hwkMRZQrfRBaVZv0lFws+GZdpidQcSaRL/+FMFzklvqpucgJc9/0+PRnCqvc5ZBCX5dUWSYDmKaHzogPQXhlT39EXTVyjkmKL50zUImgIjIJ5gqndm3HDpx2hRWPi44ow7bF2f/QdfICayNNLzn643xfXk604BlXlpOUtl238SEn1hOod0Xln1lmw/34Z1YfvK3lr93Wsb22h7JJ9pfblJAhOli9MiP93ZIX2cAaoc61GKwPIZHGJKDcKfmRGw8Dp05H6y8dXhK7Ve8yKClOnIhqK1r5/nNuVGSAaYzRbzYBQ7MgdpsGa3OBwePFo4Ye6AH+VPHFdMSehqj7On5aawqKbgz+to37OGlowqjZVCMjnKktdii9oSxv1ghVuhD9+OmyNbx3fQYRDR+roqQzTodaHDfTcSmEsoUvH882B0OtUfCeGhcgMO9ymSZ2JPEECDeMx1Kh+HqzbZx/cBeHQ9MnZtqPON2GuQxDFBb9b4Jd88TiMLr9pH6rTECxRLRlk3vILmoNKYmgije0/1s+Ip 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)(376002)(396003)(136003)(39860400002)(346002)(451199015)(40470700004)(46966006)(36840700001)(81166007)(2906002)(82740400003)(84970400001)(36860700001)(36756003)(40460700003)(47076005)(426003)(83380400001)(40480700001)(2616005)(70206006)(82310400005)(7696005)(316002)(54906003)(86362001)(6666004)(6916009)(70586007)(44832011)(336012)(41300700001)(4326008)(1076003)(5660300002)(8936002)(478600001)(26005)(8676002)(186003)(133343001)(121003001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2023 16:40:39.3581 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9bd70c62-b9ca-4e15-a44d-08dafb051054 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: DBAEUR03FT012.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR08MB10233 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?1755560652060375418?= X-GMAIL-MSGID: =?utf-8?q?1755560652060375418?= gcc/testsuite/ChangeLog: * gcc.target/arm/mve/intrinsics/vqrdmlsdhq_m_s16.c: Improve test. * gcc.target/arm/mve/intrinsics/vqrdmlsdhq_m_s32.c: Likewise. * gcc.target/arm/mve/intrinsics/vqrdmlsdhq_m_s8.c: Likewise. * gcc.target/arm/mve/intrinsics/vqrdmlsdhq_s16.c: Likewise. * gcc.target/arm/mve/intrinsics/vqrdmlsdhq_s32.c: Likewise. * gcc.target/arm/mve/intrinsics/vqrdmlsdhq_s8.c: Likewise. --- .../arm/mve/intrinsics/vqrdmlsdhq_m_s16.c | 34 ++++++++++++++++--- .../arm/mve/intrinsics/vqrdmlsdhq_m_s32.c | 34 ++++++++++++++++--- .../arm/mve/intrinsics/vqrdmlsdhq_m_s8.c | 34 ++++++++++++++++--- .../arm/mve/intrinsics/vqrdmlsdhq_s16.c | 24 +++++++++++-- .../arm/mve/intrinsics/vqrdmlsdhq_s32.c | 24 +++++++++++-- .../arm/mve/intrinsics/vqrdmlsdhq_s8.c | 24 +++++++++++-- 6 files changed, 156 insertions(+), 18 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_m_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_m_s16.c index d0054b8ea97..6a5776215ca 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_m_s16.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_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(?: @.*|) +** ... +** vqrdmlsdht.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 vqrdmlsdhq_m_s16 (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqrdmlsdht.s16" } } */ +/* +**foo1: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vqrdmlsdht.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 vqrdmlsdhq_m (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqrdmlsdht.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/vqrdmlsdhq_m_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_m_s32.c index 7d3fe45eb4d..9539e249d6a 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_m_s32.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_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(?: @.*|) +** ... +** vqrdmlsdht.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 vqrdmlsdhq_m_s32 (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqrdmlsdht.s32" } } */ +/* +**foo1: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vqrdmlsdht.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 vqrdmlsdhq_m (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqrdmlsdht.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/vqrdmlsdhq_m_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_m_s8.c index c33f8ea903b..69e54f53a76 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_m_s8.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_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(?: @.*|) +** ... +** vqrdmlsdht.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 vqrdmlsdhq_m_s8 (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqrdmlsdht.s8" } } */ +/* +**foo1: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vqrdmlsdht.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 vqrdmlsdhq_m (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqrdmlsdht.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/vqrdmlsdhq_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_s16.c index 3bd760d38aa..3eb957d6029 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_s16.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_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: +** ... +** vqrdmlsdh.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int16x8_t foo (int16x8_t inactive, int16x8_t a, int16x8_t b) { return vqrdmlsdhq_s16 (inactive, a, b); } -/* { dg-final { scan-assembler "vqrdmlsdh.s16" } } */ +/* +**foo1: +** ... +** vqrdmlsdh.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int16x8_t foo1 (int16x8_t inactive, int16x8_t a, int16x8_t b) { return vqrdmlsdhq (inactive, a, b); } -/* { dg-final { scan-assembler "vqrdmlsdh.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/vqrdmlsdhq_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_s32.c index e23dc94a9ed..3a3fb506c01 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_s32.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_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: +** ... +** vqrdmlsdh.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int32x4_t foo (int32x4_t inactive, int32x4_t a, int32x4_t b) { return vqrdmlsdhq_s32 (inactive, a, b); } -/* { dg-final { scan-assembler "vqrdmlsdh.s32" } } */ +/* +**foo1: +** ... +** vqrdmlsdh.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int32x4_t foo1 (int32x4_t inactive, int32x4_t a, int32x4_t b) { return vqrdmlsdhq (inactive, a, b); } -/* { dg-final { scan-assembler "vqrdmlsdh.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/vqrdmlsdhq_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_s8.c index 836e04af566..65ac15da9c7 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_s8.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqrdmlsdhq_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: +** ... +** vqrdmlsdh.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int8x16_t foo (int8x16_t inactive, int8x16_t a, int8x16_t b) { return vqrdmlsdhq_s8 (inactive, a, b); } -/* { dg-final { scan-assembler "vqrdmlsdh.s8" } } */ +/* +**foo1: +** ... +** vqrdmlsdh.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int8x16_t foo1 (int8x16_t inactive, int8x16_t a, int8x16_t b) { return vqrdmlsdhq (inactive, a, b); } -/* { dg-final { scan-assembler "vqrdmlsdh.s8" } } */ +#ifdef __cplusplus +} +#endif + +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ \ No newline at end of file