From patchwork Thu Nov 17 16:37:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Corallo X-Patchwork-Id: 21812 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp503402wrr; Thu, 17 Nov 2022 08:45:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf6EN1WZ41PShX+kpcwCWPxteISZvgsRpGF5uNEwwOjEd0X7IFsNNUNx0DfX+V00DiefBqaP X-Received: by 2002:a05:6402:19a:b0:460:7413:5d46 with SMTP id r26-20020a056402019a00b0046074135d46mr2945215edv.47.1668703541587; Thu, 17 Nov 2022 08:45:41 -0800 (PST) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id 17-20020a170906059100b007acdb4016e0si834054ejn.224.2022.11.17.08.45.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 08:45:41 -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=u54qgiEx; 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 50B2538877C6 for ; Thu, 17 Nov 2022 16:42:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 50B2538877C6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668703329; bh=88qpMMTDwnWgL9idkmcV/o5H3JIBY3/7tuJ9NWM5p7k=; 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=u54qgiExJy+WAv3pP7byX8vHXr/L0AvgP+u/hwheCu/8T5CDs/TTMp8GjBk2v3YDT ix02VB1oIvVhLxhl59yTmjaWv1uEgcI74wyFuSS4pQixZUf1bps4qClDzozZM2VHpf MjGNuNhu2Jw/XOCtpI+27OAYI/rZFHHMN/ltMlRc= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2056.outbound.protection.outlook.com [40.107.104.56]) by sourceware.org (Postfix) with ESMTPS id 872283AA902B for ; Thu, 17 Nov 2022 16:38:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 872283AA902B Received: from DB9PR06CA0028.eurprd06.prod.outlook.com (2603:10a6:10:1db::33) by AS8PR08MB9480.eurprd08.prod.outlook.com (2603:10a6:20b:61f::7) 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:42 +0000 Received: from DBAEUR03FT052.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:1db:cafe::b7) by DB9PR06CA0028.outlook.office365.com (2603:10a6:10:1db::33) 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:42 +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 DBAEUR03FT052.mail.protection.outlook.com (100.127.142.144) 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:42 +0000 Received: ("Tessian outbound 58faf9791229:v130"); Thu, 17 Nov 2022 16:38:42 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: cbd439e97aaa7c1c X-CR-MTA-TID: 64aa7808 Received: from 0568158ad00e.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id FA2D445E-C93D-483E-BDC1-53CBD722B4C2.1; Thu, 17 Nov 2022 16:38:35 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 0568158ad00e.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 17 Nov 2022 16:38:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a7DfVofkW3NYV6Q9M8UJiSnOQtqWn5uTKFbq8Qeo0dfWbYILZnUh8Ty6VxzyBossRvd2719E/vAzwyGAIEtyI03SnVPBsqyl8SKVyPUvlYRqwDMx7vSQlzLzj9s/mVajy2vvs50RI2xERujril/LH3ZYFYtfr+zjKa0bSGCb+M00fVye7Q7EtaZ+GMh/Ky+ve8UyIOi2+tC9HuLEYahbJ3iF2NccjZU+WbAjKnm3JJ3aNfWbCwjbWUYSRhsq6WqGw2kIXokw1MoBapFag1K6rA4/N7TFnylZf+Pa8tzwNmHUnEv4KPHozic+limcuCFMIAJCsavCb+dZVwez3WJCgg== 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=88qpMMTDwnWgL9idkmcV/o5H3JIBY3/7tuJ9NWM5p7k=; b=TSjgQu6u2b2wBAzDB06snL8ZIliudM0Q3F/16SqSsiwL5/gbPjmdZz65HERB7xxZiMll6PLos0TWPp0gnls/UnQv22jSZy4d4YXQ9OpVDJjiHs+QoEg1LM89pBrV2QR+B3E6pRbNvViuv9R79BlzJotJA+asx3kxu+pnaGEAkbKHAqrDAmmQzsN/old7+WN7KjS9uNM5t580alxODOimdDFmGoI/2hPEVNTsTZOT/5FN6dZTn9iMyiaCZzJafJkG1cNlOjSbTwWWYb8D+Dd1QJZhQhyyYjJ94AqWQnJ7k/kn78jIKaMAF4KF47ph1+akvF8HjPHlt5EwgQaw+sMtjg== 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 DB8P191CA0007.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:130::17) by AS4PR08MB8021.eurprd08.prod.outlook.com (2603:10a6:20b:584::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.9; Thu, 17 Nov 2022 16:38:31 +0000 Received: from DBAEUR03FT048.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:130:cafe::b5) by DB8P191CA0007.outlook.office365.com (2603:10a6:10:130::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.17 via Frontend Transport; Thu, 17 Nov 2022 16:38:31 +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 DBAEUR03FT048.mail.protection.outlook.com (100.127.142.200) 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:31 +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; Thu, 17 Nov 2022 16:38:25 +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; Thu, 17 Nov 2022 16:38:24 +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:24 +0000 To: CC: , , Andrea Corallo Subject: [PATCH 20/35] arm: improve tests for vfmasq_m* Date: Thu, 17 Nov 2022 17:37:54 +0100 Message-ID: <20221117163809.1009526-21-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: DBAEUR03FT048:EE_|AS4PR08MB8021:EE_|DBAEUR03FT052:EE_|AS8PR08MB9480:EE_ X-MS-Office365-Filtering-Correlation-Id: 33891a52-d90f-41df-0283-08dac8ba306f 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: n45fVLO+foecPBry5fmDikcllpkD5HM7GUdHNHN3VQkBpEYD1cLDESjoZxS2N33JzJi7ibOCQtuEtd8LWxfV4J2K0+ZZcm80iDNqBaDKO3muGvyMmXjycE0ndllWsE0A+bzGQx5hsxrB0neDpmrC01+uRuRkNQWCKmPpTYfnlXQaBK3+RWEX5fSqDZD/kXQqZXoh+EU4ixSkTuPK44jC/uJXVRvOqbkcCLnZDu5cQfUy3VQGvfIxN8Of8Ya4tKVbOcA8978fkNx+ngF0ydI1GKSbP1JjX0jj39l4wiQrgFyKqxL2zOesl9KB4a3418xWBnjoW0/UnxS9LA6gXPSzMu9uzkv3FaWglUze28+/+L13ldNDMa+Ft+HFQwUQS+0yHezjanK5Ab+Ze2ENd39AHvTeeSpNbQ0GTVqTPX61GticamNcItUMTZGo48e0Kwe3b6+I2J42HJjQDS96cL++b1mIdip5eCdq7iNsmw3Xq5t7NWYFHny4BwrPNMsz4FtF2iQ82xkjWKmR/fLHO4o+GPvpPHTC3QmkFYPtmVPMzPR/bKWn2aKbb3JGDFEIcVJfiFDZkG5m9l0g3FP7bwkH04P3VST3PYwDFDFqXBwBTRg+MMStnTHlRZv3Hpkacgd02SqhlpRE0zptDW0h/e0xqnYe+HNfjTs/dU5ZKAUq4XooIKZ19Jj6L1I258ShLYu74Ey4QiMUO7bp0liXSgHfkOYoe+ORQSVYOnLuFPr2aMDRLkc1nrpdSQQIr7XRb35QZtKGfaislqZQSM/5CeYlSfc/l23ghvA1es14vUCMc8Hc4+8b3Nf7zXUkXaiXmzrD 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)(376002)(136003)(346002)(39860400002)(396003)(451199015)(36840700001)(40470700004)(46966006)(36756003)(84970400001)(82740400003)(2906002)(4326008)(81166007)(356005)(8936002)(36860700001)(86362001)(83380400001)(70586007)(316002)(1076003)(6916009)(54906003)(426003)(186003)(2616005)(336012)(47076005)(478600001)(40480700001)(44832011)(8676002)(41300700001)(82310400005)(40460700003)(5660300002)(26005)(7696005)(6666004)(70206006)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB8021 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT052.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 4eebc435-47ad-4052-cbeb-08dac8ba29dd X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZdUcleBqGksqoOmu6/qfQUZE9jc1G1j9KU3ROAqem431JUql/5+Fxb7ao0QvtPECgBbig5upzkRvSB3RXQ+Xw7MVE/FwhAIaORkk2RPvFutKQGaYM8tDd0xt5KD5pGIc2xAm5PUOUbL4WcGlqoxg7ZUU5MkkVd6vJi7eN69mMWnZhWBLEw2V2UsGoTM+S6INNw/DCRL2uGQGHCSHKP3BCt5vNWRBCVif02d5pjcbV5yGGTBPWeEpeuyLNN/bYGsDOtNyLgij1zzTLkBuWA3UlUOpepZZKwG7p2RuHA2vLH0kx1ZEG9ieZZ467MmpZM8XO5LpDKBo1EC0nGfV4KxsDnsp3dfARXcVFcdybt85iNV24JCbTMig747fvaUXSXgKWTIuH8YYnRJUcuXjLrzjWcq//rY1nWAe/S/sPR49hqf0XtVPo/MfVkutoQQIDuejyQGVPme1GZXUnkxh/GwI+VDQCkitW0vF21pAqLzS/Q/+zEHc02FASXRhE+om51Bl47cYBzr4FnTnCAegV/tcQrF1D8x+LajPb9Q1q8y0Oq0O+RGwz/PcO7sS4XXhLAJNNNs7Ig5o/bNPSdS5FqNu/UAD+bNJX4hZ+ojoELZUZqMzRCCBnul2ZatWTeIP7cwOBQ8ljmPyPhcEI2uO+oMJPL4050I+It3VvzkVYGMCCPHwU4vuQ3a3cRSCqraHoKtYj+UlAk6PAsbHJANynIbIqDqZELXAToA1EXS3S+ie4+kVNUdDXCG1u63OIIFNfeiKczUb8IOTAkEbp4pEWNFc2g== 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)(346002)(39860400002)(136003)(451199015)(46966006)(36840700001)(40470700004)(26005)(7696005)(6666004)(36860700001)(83380400001)(4326008)(478600001)(82740400003)(8676002)(70206006)(41300700001)(6916009)(70586007)(54906003)(5660300002)(81166007)(316002)(40460700003)(44832011)(8936002)(84970400001)(2906002)(426003)(1076003)(82310400005)(86362001)(186003)(336012)(2616005)(47076005)(40480700001)(36756003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2022 16:38:42.8400 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 33891a52-d90f-41df-0283-08dac8ba306f 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: DBAEUR03FT052.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9480 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_DMARC_NONE, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, 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?1749762484777735099?= X-GMAIL-MSGID: =?utf-8?q?1749762484777735099?= gcc/testsuite/ChangeLog: * gcc.target/arm/mve/intrinsics/vfmasq_m_n_f16.c: Improve test. * gcc.target/arm/mve/intrinsics/vfmasq_m_n_f32.c: Likewise. --- .../arm/mve/intrinsics/vfmasq_m_n_f16.c | 50 ++++++++++++++++--- .../arm/mve/intrinsics/vfmasq_m_n_f32.c | 50 ++++++++++++++++--- 2 files changed, 84 insertions(+), 16 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vfmasq_m_n_f16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vfmasq_m_n_f16.c index 06d2d114e46..03b376c9bbe 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vfmasq_m_n_f16.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vfmasq_m_n_f16.c @@ -1,23 +1,57 @@ /* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */ /* { dg-add-options arm_v8_1m_mve_fp } */ /* { dg-additional-options "-O2" } */ +/* { dg-final { check-function-bodies "**" "" } } */ #include "arm_mve.h" +/* +**foo: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vfmast.f16 q[0-9]+, q[0-9]+, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +*/ float16x8_t -foo (float16x8_t a, float16x8_t b, float16_t c, mve_pred16_t p) +foo (float16x8_t m1, float16x8_t m2, float16_t add, mve_pred16_t p) { - return vfmasq_m_n_f16 (a, b, c, p); + return vfmasq_m_n_f16 (m1, m2, add, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vfmast.f16" } } */ +/* +**foo1: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vfmast.f16 q[0-9]+, q[0-9]+, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +*/ float16x8_t -foo1 (float16x8_t a, float16x8_t b, float16_t c, mve_pred16_t p) +foo1 (float16x8_t m1, float16x8_t m2, float16_t add, mve_pred16_t p) { - return vfmasq_m (a, b, c, p); + return vfmasq_m (m1, m2, add, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vfmast.f16" } } */ +/* +**foo2: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vfmast.f16 q[0-9]+, q[0-9]+, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +*/ +float16x8_t +foo2 (float16x8_t m1, float16x8_t m2, mve_pred16_t p) +{ + return vfmasq_m (m1, m2, 1.1, p); +} + +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ \ No newline at end of file diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vfmasq_m_n_f32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vfmasq_m_n_f32.c index bf1773d0eeb..ecf30ba9826 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vfmasq_m_n_f32.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vfmasq_m_n_f32.c @@ -1,23 +1,57 @@ /* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */ /* { dg-add-options arm_v8_1m_mve_fp } */ /* { dg-additional-options "-O2" } */ +/* { dg-final { check-function-bodies "**" "" } } */ #include "arm_mve.h" +/* +**foo: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vfmast.f32 q[0-9]+, q[0-9]+, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +*/ float32x4_t -foo (float32x4_t a, float32x4_t b, float32_t c, mve_pred16_t p) +foo (float32x4_t m1, float32x4_t m2, float32_t add, mve_pred16_t p) { - return vfmasq_m_n_f32 (a, b, c, p); + return vfmasq_m_n_f32 (m1, m2, add, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vfmast.f32" } } */ +/* +**foo1: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vfmast.f32 q[0-9]+, q[0-9]+, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +*/ float32x4_t -foo1 (float32x4_t a, float32x4_t b, float32_t c, mve_pred16_t p) +foo1 (float32x4_t m1, float32x4_t m2, float32_t add, mve_pred16_t p) { - return vfmasq_m (a, b, c, p); + return vfmasq_m (m1, m2, add, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vfmast.f32" } } */ +/* +**foo2: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vfmast.f32 q[0-9]+, q[0-9]+, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +*/ +float32x4_t +foo2 (float32x4_t m1, float32x4_t m2, mve_pred16_t p) +{ + return vfmasq_m (m1, m2, 1.1, p); +} + +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ \ No newline at end of file