From patchwork Fri Jan 20 16:39:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Corallo X-Patchwork-Id: 46502 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp305075wrn; Fri, 20 Jan 2023 08:47:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXvYb3KKJ52naxAFumD4wEzglWn8PBQWWwfvyoeqz2VdeHa0EjGQC3MzmVXRf86Dz3cWQO5h X-Received: by 2002:a05:6402:1002:b0:49b:63ea:b5d8 with SMTP id c2-20020a056402100200b0049b63eab5d8mr16010312edu.4.1674233261019; Fri, 20 Jan 2023 08:47: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 h8-20020a05640250c800b0049e1d359ae5si17120387edb.4.2023.01.20.08.47.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 08:47: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=HTYOk4gd; 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 0B2AD3857007 for ; Fri, 20 Jan 2023 16:43:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B2AD3857007 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674233036; bh=Lx8HV9rTuXFwVBpbhLx1bWRyATzzHRtGO0n7H1Of4OE=; 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=HTYOk4gd6cnMzVr/UGCgwLyaGo58EknOCehs7nqdmLPOIdydxK6i7ExA4gGzkM8tE LtUAWl3tcCWG26/77lZbyUkppXDv3qAv19iiw68VXJWAOXhJLVawiT4FcE1Ml9FoeX tOAvY0sYgumiO0SeFs/XNBeQNd0hQd3qJi6+JWDE= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2073.outbound.protection.outlook.com [40.107.105.73]) by sourceware.org (Postfix) with ESMTPS id 0CCD33857C55 for ; Fri, 20 Jan 2023 16:40:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0CCD33857C55 Received: from DU2PR04CA0229.eurprd04.prod.outlook.com (2603:10a6:10:2b1::24) by PAWPR08MB10212.eurprd08.prod.outlook.com (2603:10a6:102:369::15) 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:51 +0000 Received: from DBAEUR03FT031.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2b1:cafe::5e) by DU2PR04CA0229.outlook.office365.com (2603:10a6:10:2b1::24) 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:51 +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:51 +0000 Received: ("Tessian outbound 43b0faad5a68:v132"); Fri, 20 Jan 2023 16:40:51 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 819657e705eed005 X-CR-MTA-TID: 64aa7808 Received: from 33be50535149.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id BFF96412-03FD-43BE-AB0D-473428DADA7D.1; Fri, 20 Jan 2023 16:40:45 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 33be50535149.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=AkC8cn6BDnrN1a3pZkcNN+v++4yUB26Q+tCszKDOJhNMAYA8eVKoQr+zh2z4ljU1gyS0dP0mj5lMK4nlTlIlnAYmWDXYbKY8UIcf2erzsPxTc09QUIPZ6EjpnQFYd0VUowyjynfLNHert3g7RYV+jq7Xhir2fFYs+y3+E1fya3icyY9NsoA9uC0tGs7Es6gtvK7QoHJeVw0DkP4YM93U2S1yTF3hg4L+bGlJJTV6ERlSEH6iosq19WG8YLevj6uo//dh7nGx2iBcU2ygeWtY+1tomyYyFKtC2u7/1s91gUOx5HBk3nL8nZT0/8G18vS0iauGReGo424xo7GefHa73A== 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=Lx8HV9rTuXFwVBpbhLx1bWRyATzzHRtGO0n7H1Of4OE=; b=kpsIFHY+8qC2Qv0EAhb+xRSx3scyKqyHIX5QjeGamvPrgCKz6ALXvRWhkIseQtZXmQ6j4tf2KLUFVpJr9TACq2oZADf+lSSlrNPWHuEoVy7VtTkFtz48EoORjcdZ2dv2M+RqWyTpwf9TnPxABwTAkh1dyfL3wO8MmvBCFi5cn5ec/JLCkSr5n4tqcqD/oaAM+z+7zt7PkXe0xBS36/xlhsLhC2pCL6okI/Ne5jnChWlMds8jXEXwyD+CZYw2P3N7R5Tz7LmdZaBbxpGUWU08AbnaQC1FLOF8mqxy8yFSrrn6/RGl7W+DbKUm4rV1qlmynZroanNX8QNIZPm4NsH8GQ== 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 AS9PR06CA0594.eurprd06.prod.outlook.com (2603:10a6:20b:486::30) by AS2PR08MB8381.eurprd08.prod.outlook.com (2603:10a6:20b:558::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:43 +0000 Received: from AM7EUR03FT031.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:486:cafe::aa) by AS9PR06CA0594.outlook.office365.com (2603:10a6:20b:486::30) 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:43 +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 AM7EUR03FT031.mail.protection.outlook.com (100.127.140.84) 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:43 +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:25 +0000 To: CC: , , Andrea Corallo Subject: [PATCH 12/23] arm: improve tests for vqdmladhxq* Date: Fri, 20 Jan 2023 17:39:37 +0100 Message-ID: <20230120163948.752531-13-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: AM7EUR03FT031:EE_|AS2PR08MB8381:EE_|DBAEUR03FT031:EE_|PAWPR08MB10212:EE_ X-MS-Office365-Filtering-Correlation-Id: 42b27313-061f-48c2-e7d5-08dafb0517a4 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: rwF6Q6P33qahyrcMuCm9ZbPCdXCsINFMGyTNvWCYdAizyEXdemRXv4Mtew0C3XdksMX32TWSLAMZDwIYYgddtcoH9ZJyRnZjkKagBgMVfIk/vWE/agUvVsgdgsHx8rtUB6MDKIIuviH0WGOyJb9vvOfsJ4rM5c6UkoauSKBag8Q3mfXK8UfdXPUzd06CaWgUud7LovVWK2PTeoSBQ/vhCoWaOmTNF4jyxqzPLU7Y5adBX7Zb1euKeUDR7ouYiG5XfQB9yQYPYjIAXupB8Oo7i4T1b23II9CR/OdSbqHWPCvgt5LcE0l3gloOKBrd3G56p12diHWpfaSQ1E/PgC1XasPlpe6WVe2rNXH1tvTKF1MRDR07DKTqr8ZfUpbOm+JaWjJ9S6CkDyB9+8tfarPWDPUcseXSeexlg+LhjsWesw0RVxTSW3GzYDhkPVEVWV9XykJ8VPnYzUb5cX+2JDDIeoyj9k8IWAwj+hsH7BmfzYrKQddOG2p/tVgIRZH+/8JqSnBo/oyqEQ5FfHy4GwI5daFw/VuTuM+hgsGRS3tgsWjbOv5YvxrNtsqG774PGkDCws/EnGqE5PeIyas/VZO0t+issCinS8YdCkpk2IFdLL33f0k5nBrmNDZ/JDTSmENqKU79+C6U0ZfUL0H4ErlhBIoHRGtXXeTw3ag/q1E1pV11rbCTwIahXwpFZCkWPOpRWvh5IUMb6B8nL0QOG1KDu7JO7rZhKaKOrMIoEx+KTO2GjcXN+M1L4M7dbjfsVul2X+m4RX/fr6+DsoxA8SfBu7xY4XltDyX8tPhEPcSKFkzBI0aahprY7lfqj/xi6khq 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)(136003)(346002)(376002)(39860400002)(396003)(451199015)(46966006)(36840700001)(40470700004)(44832011)(84970400001)(2906002)(5660300002)(8936002)(186003)(7696005)(86362001)(83380400001)(36756003)(336012)(4326008)(70586007)(70206006)(8676002)(6916009)(54906003)(316002)(41300700001)(82310400005)(2616005)(1076003)(40460700003)(26005)(426003)(356005)(81166007)(47076005)(478600001)(40480700001)(36860700001)(82740400003)(6666004)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB8381 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT031.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 37509727-bb01-419f-f47d-08dafb0512ab X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DR+HrnDRDpAInbNTEiEK3W99fdlVA/39VG7Jw1Kq9pvBTbCsSv+M9KRvGZGC7EtCopXT2vfYQGv+jhlVQ277bTjaKaQIHR2FEu4dPdct7P+i1bMb3DdokyR+dSuaVsdtCPmtu4mBkv0xfoGkLAn8eZIJOueZydpyWlx4hKzE9QhaDpaLW1h9Rm8/imLb4FvXOzom7yLeQFzBEdKA6BExfTXNEXnKQRvzS0eIPcz7oqzlxLfF31oIWuKt5bjJPNz21Z7AXXVeF+nKlSQNlLW4az4IcOzrBw0ZNbAPMO6d4zUU3XyRIjT2TldXyeHGT/6gHUBgmRkVkjw4QLRNEqCmGrK12ChYFBBjH7gCzwB+rLCXis3Q/cH2ZIAGvqCwZUkBp4bg1LDScW+ltYMHry4BIbTHR5V5ZTACVnOa4GHsCSbCFRkakJoZTSrSsH6kZySb+sKt0gkJaUvbXIBFtueFa9NKtzaBqOquDIYAb7hmEIgngaQAyAPAclHydOhvTZQK4AgpOXqZ5AEL5b3V5u6z7FAl6hd5nMEVuO9uHcnOFfLjh3jbpNupoCe2IH4hYw8BADsi0nEbCWsn1wJFels3z0MPxFMb85L3FLxx9tbbCgRbY0MXvJYsx/TtG7E6yJpZayV8ZfOqWvTkta/hH5a/jxoTc/ON3pDkLNLWDbo0HmkpqDmWTTIrpfWCfYgNCAgjaWPvZr+YjJyfoXmVRDSLvhI9/LJoNBtMkDjVGnhq6lr3bBddaZwpHCL+b2rW2EebH+F4f5fkBzrHoHf7MkvLKA== 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)(396003)(346002)(376002)(136003)(451199015)(36840700001)(46966006)(40470700004)(81166007)(84970400001)(36756003)(82740400003)(44832011)(5660300002)(36860700001)(47076005)(83380400001)(40480700001)(8936002)(82310400005)(86362001)(426003)(41300700001)(6916009)(7696005)(70206006)(54906003)(8676002)(40460700003)(2906002)(70586007)(1076003)(316002)(4326008)(6666004)(2616005)(186003)(26005)(336012)(478600001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2023 16:40:51.6437 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 42b27313-061f-48c2-e7d5-08dafb0517a4 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: PAWPR08MB10212 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?1755560815888489121?= X-GMAIL-MSGID: =?utf-8?q?1755560815888489121?= gcc/testsuite/ChangeLog: * gcc.target/arm/mve/intrinsics/vqdmladhxq_m_s16.c: Improve test. * gcc.target/arm/mve/intrinsics/vqdmladhxq_m_s32.c: Improve test. * gcc.target/arm/mve/intrinsics/vqdmladhxq_m_s8.c: Improve test. * gcc.target/arm/mve/intrinsics/vqdmladhxq_s16.c: Improve test. * gcc.target/arm/mve/intrinsics/vqdmladhxq_s32.c: Improve test. * gcc.target/arm/mve/intrinsics/vqdmladhxq_s8.c: Improve test. --- .../arm/mve/intrinsics/vqdmladhxq_m_s16.c | 34 ++++++++++++++++--- .../arm/mve/intrinsics/vqdmladhxq_m_s32.c | 34 ++++++++++++++++--- .../arm/mve/intrinsics/vqdmladhxq_m_s8.c | 34 ++++++++++++++++--- .../arm/mve/intrinsics/vqdmladhxq_s16.c | 24 +++++++++++-- .../arm/mve/intrinsics/vqdmladhxq_s32.c | 24 +++++++++++-- .../arm/mve/intrinsics/vqdmladhxq_s8.c | 24 +++++++++++-- 6 files changed, 156 insertions(+), 18 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_m_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_m_s16.c index c2446e69181..19c5ce5a64f 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_m_s16.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_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(?: @.*|) +** ... +** vqdmladhxt.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 vqdmladhxq_m_s16 (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqdmladhxt.s16" } } */ +/* +**foo1: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vqdmladhxt.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 vqdmladhxq_m (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqdmladhxt.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/vqdmladhxq_m_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_m_s32.c index 12b45517535..e00162addae 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_m_s32.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_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(?: @.*|) +** ... +** vqdmladhxt.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 vqdmladhxq_m_s32 (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqdmladhxt.s32" } } */ +/* +**foo1: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vqdmladhxt.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 vqdmladhxq_m (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqdmladhxt.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/vqdmladhxq_m_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_m_s8.c index 146aa51306b..19767d2cd41 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_m_s8.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_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(?: @.*|) +** ... +** vqdmladhxt.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 vqdmladhxq_m_s8 (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqdmladhxt.s8" } } */ +/* +**foo1: +** ... +** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|) +** ... +** vpst(?: @.*|) +** ... +** vqdmladhxt.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 vqdmladhxq_m (inactive, a, b, p); } -/* { dg-final { scan-assembler "vpst" } } */ -/* { dg-final { scan-assembler "vqdmladhxt.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/vqdmladhxq_s16.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_s16.c index 5a6f4455c20..c6a2fa80670 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_s16.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_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: +** ... +** vqdmladhx.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int16x8_t foo (int16x8_t inactive, int16x8_t a, int16x8_t b) { return vqdmladhxq_s16 (inactive, a, b); } -/* { dg-final { scan-assembler "vqdmladhx.s16" } } */ +/* +**foo1: +** ... +** vqdmladhx.s16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int16x8_t foo1 (int16x8_t inactive, int16x8_t a, int16x8_t b) { return vqdmladhxq (inactive, a, b); } -/* { dg-final { scan-assembler "vqdmladhx.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/vqdmladhxq_s32.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_s32.c index 4eafa6f9476..d38bd691243 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_s32.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_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: +** ... +** vqdmladhx.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int32x4_t foo (int32x4_t inactive, int32x4_t a, int32x4_t b) { return vqdmladhxq_s32 (inactive, a, b); } -/* { dg-final { scan-assembler "vqdmladhx.s32" } } */ +/* +**foo1: +** ... +** vqdmladhx.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int32x4_t foo1 (int32x4_t inactive, int32x4_t a, int32x4_t b) { return vqdmladhxq (inactive, a, b); } -/* { dg-final { scan-assembler "vqdmladhx.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/vqdmladhxq_s8.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_s8.c index cc6643574f4..322f702d962 100644 --- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_s8.c +++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmladhxq_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: +** ... +** vqdmladhx.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int8x16_t foo (int8x16_t inactive, int8x16_t a, int8x16_t b) { return vqdmladhxq_s8 (inactive, a, b); } -/* { dg-final { scan-assembler "vqdmladhx.s8" } } */ +/* +**foo1: +** ... +** vqdmladhx.s8 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|) +** ... +*/ int8x16_t foo1 (int8x16_t inactive, int8x16_t a, int8x16_t b) { return vqdmladhxq (inactive, a, b); } -/* { dg-final { scan-assembler "vqdmladhx.s8" } } */ +#ifdef __cplusplus +} +#endif + +/* { dg-final { scan-assembler-not "__ARM_undef" } } */ \ No newline at end of file