From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2082.outbound.protection.outlook.com [40.107.22.82]) by sourceware.org (Postfix) with ESMTPS id EA0F238319C2 for ; Tue, 22 Aug 2023 10:39:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EA0F238319C2 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+14tgU3iXQ5XiUF4JRI+cYtwpB4Ckdd3B7MYiR22HsE=; b=7foEgFpkEr5IM+V1jgbYDG/mJOjn0NkmoOx9Fo0NC7b2sGVTwK2vHvX9G3SUtehrblshhCRqqIhnk0UA0/HFMTZPa3+cbERhjx8lhwMlB4+a7eNnOz+FuKjW47L+8aHTrkdSpW/M63n0kHIHhuGu+eiG4sMGNJyGt9v90DovIPk= Received: from AS8P189CA0006.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:31f::33) by GV1PR08MB7706.eurprd08.prod.outlook.com (2603:10a6:150:51::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20; Tue, 22 Aug 2023 10:39:28 +0000 Received: from AM7EUR03FT042.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:31f:cafe::ba) by AS8P189CA0006.outlook.office365.com (2603:10a6:20b:31f::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20 via Frontend Transport; Tue, 22 Aug 2023 10:39:27 +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 AM7EUR03FT042.mail.protection.outlook.com (100.127.140.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6723.15 via Frontend Transport; Tue, 22 Aug 2023 10:39:27 +0000 Received: ("Tessian outbound 5c548696a0e7:v175"); Tue, 22 Aug 2023 10:39:27 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4329d7cceb1d0cbb X-CR-MTA-TID: 64aa7808 Received: from e85e03994013.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 52EE0F5D-39A8-46A7-B439-11D06A36D229.1; Tue, 22 Aug 2023 10:39:20 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e85e03994013.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 22 Aug 2023 10:39:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GZmh+I7dzFYljmp6UGmdFaxBXADnUdfelIK+3VQI2vP8esr9w9QkLlVgHgpNTKh2JJdz/j/4dy+wrIfvzqU7nGNVa3Os098ACWSbKccYZOPgo/yOgBoZ9sMEyJCszPFq6oenNBVDTOotQqW3rwpq+5vUBlFRMGgEeZzULXMVu/t+7kt1hfctuzk90i++EpIC57srTOBHHTyesmupvtrjcFJ7VFeyr3QWx1kgprYgi+Ja0C2qbEURoIC/4kw9121cjaB9N1s+gi3rco5A7Y59QUoqgIlJBSeboSDnnE11RHcxDXUKd9O8MCGMyAjckhXlffwqDPPVbgvcZvRmctOe8A== 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=+14tgU3iXQ5XiUF4JRI+cYtwpB4Ckdd3B7MYiR22HsE=; b=dGmlEgFF3XQYfJBOPQr90G5C7O3VQJ0slnl54aYrvG602g0aL7S/WDkIQPS7i3kLkZzz//tMUGUfHrvnFkMzmSqlK3gMnFup1eXGaLQX/ZZk1UVHHKZU/ODbMc5nPnBVICzs1VBrqNvuQvXS1baDrjSyguy+ik1uTnaApGwl6SDffXIlNhW6U8Rkmld+TTjNZ9XLWqhuYPywrVryKmENaRujO//63ofDAYVpQTQ/nuxY59AYGsZkYgdcIA+AUPAWEWSLmbgYMkv7cc3bSaEs/rtLb5wGvBQI6kqDNkxEE3uvsFdfqNe44vyjBt79bMkAwOrZjETqbn+bM5fGDY2UoQ== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+14tgU3iXQ5XiUF4JRI+cYtwpB4Ckdd3B7MYiR22HsE=; b=7foEgFpkEr5IM+V1jgbYDG/mJOjn0NkmoOx9Fo0NC7b2sGVTwK2vHvX9G3SUtehrblshhCRqqIhnk0UA0/HFMTZPa3+cbERhjx8lhwMlB4+a7eNnOz+FuKjW47L+8aHTrkdSpW/M63n0kHIHhuGu+eiG4sMGNJyGt9v90DovIPk= Received: from AM6PR10CA0012.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:89::25) by GV2PR08MB8051.eurprd08.prod.outlook.com (2603:10a6:150:79::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20; Tue, 22 Aug 2023 10:39:18 +0000 Received: from AM7EUR03FT044.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:89:cafe::5b) by AM6PR10CA0012.outlook.office365.com (2603:10a6:209:89::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20 via Frontend Transport; Tue, 22 Aug 2023 10:39:18 +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 AM7EUR03FT044.mail.protection.outlook.com (100.127.140.169) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6723.15 via Frontend Transport; Tue, 22 Aug 2023 10:39:18 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) 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.27; Tue, 22 Aug 2023 10:39:17 +0000 Received: from armchair.cambridge.arm.com (10.2.80.71) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Tue, 22 Aug 2023 10:39:17 +0000 From: Szabolcs Nagy To: , , , Subject: [PATCH 10/11] aarch64: Fix branch-protection error message tests Date: Tue, 22 Aug 2023 11:39:17 +0100 Message-ID: <711459e210437af7580296f5bff2ef72b6039e7c.1692699125.git.szabolcs.nagy@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT044:EE_|GV2PR08MB8051:EE_|AM7EUR03FT042:EE_|GV1PR08MB7706:EE_ X-MS-Office365-Filtering-Correlation-Id: 461335ef-89c8-4ad3-ba51-08dba2fc0f7b 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: H1gVDSAZPrP/Q8yRcQl81/esU8qcPW5r7V6+cVE37oAXfhR8vmYA+3PpWeGPYc5Rzt1bSZlIJtZEUyakEvxx8oEZMgr3vY2Abf2Deqh/DPW/78Vrz6Ji9ki8CKoaANAi8o3tybMPKBxtF1zY7kgoGt+/mQH+Jo5znXxUUCPypaT4spH7fqPiOTzOvQ1yheamvQYlx4+iWjcsRw+zu0lhLMWbLt+VvpbcPR/NwkzGQdhgFOXeUufFcX8UKb7Q353sKm3QLcsLOH3GPcCCIpM7FQb4MzY1d6CISkKr7IIN7qu6JLnPzrnbqON49HA0yhJGNxoidWvsBFZI5rw/haHK7Aie9aKMPCe01hUoBmoxLWe6F0c+ETfp9KDz0zbmxshNfd/X79ao+GJpPu8HKfN8JNhuqi7qVxWWyBd7pdL5+d0INFSfhLwITsR9I6FPVef0qKvL2DPRTiyW/0CrwGjDHalQ/9jHeJrrnePFjs6fvWyil8o/nEICF9grBy/lSvirWjNnGo6nYhWLoXkHhuKNx32fzkjGqpjwq30xVnPdvW1JVYmnD+yHa5Et5OFjXC1VTHPom0REbG6+Zz6gp9cubGHPUJrppm2GMC9Y8pcE9HUFK5t0X5pZPP5Un7Q7mBfyufD2oXUNfNvE5wsW01U6l5IdGuv32r2xGGCuCjJ3qqmv/bhAGaXxxAc88rQ/uKnVMDp5dfmGd6wspBbfL7AInxQ9rt2H0M+mcqY+LIlvoCR8EKPa9FG55dOjugo7SI8UjdOFG8GzYUsnFUCUzxyHt8xk8ghAdwshkenOQfU7aV8= 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:(13230031)(4636009)(396003)(39860400002)(376002)(346002)(136003)(451199024)(186009)(1800799009)(82310400011)(36840700001)(40470700004)(46966006)(86362001)(5660300002)(110136005)(44832011)(70586007)(15650500001)(2616005)(41300700001)(84970400001)(70206006)(2906002)(316002)(6636002)(8676002)(478600001)(8936002)(40460700003)(7696005)(26005)(356005)(36756003)(82740400003)(47076005)(81166007)(336012)(426003)(36860700001)(83380400001)(40480700001)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB8051 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT042.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 96d6ab5f-2e49-48d3-ee86-08dba2fc09cb X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: erirhRBE0/n8iwFon86zqvaAnSqCcJFoc+ukWChcfn0YIvHEIUMlgQJ7Iar3ne6M/LOeBGfcFuHB0ChSHDoGRz84ZVPtO/y0u2xWtwrehb8OBhtL/gPAnicjFDZtdoDzX6vg02AWCp7vIuFwjtOFQpRd1H9w0tkxLW4ewBRj62HtvzaFnW0/YUy6tZtYfPkiGIpkhkDhX1OnRDf1hUtvBrBm347mcEOAv6dbxpq0cKL7WeTJJ5ffpjLuYw1c3/gI4U4v5LCgMIS9h6WPwdHM8BiQ6qzQm97XLk3UTt8nxyYmF81DcpyeTTT6XmYtPKecTpEH1zVtCMM117w99WMZpUcGGrXAt1VUml+ZWs7FhaJjHEE7OundHcmCkTenibEWR86jTDDZotQmVMj9Q+yPJP6p9NzS5VQTpbPKIbaMwEl/HUJc3h0QpxzN8SopKfpurQr2OBqbM+88BjRjImv+ViOtbMS/sTd/XHMPr+eSEUqgTk0eIlcY/fR9l5/9lgsbSuN26pwNPkGiOs2jiYrf15TW+dc0H2jMDjpZ9eSwPBgU8ejRCsyVpwfeeA9eyOJ1A5xv/6HUMpAut5af/Cubr8RGg0l8aiaz7bW2xwj8KdB23jKOcYTLzi4wkfVO3Rc0H/uZZIhEYRjozQor0EINIsJ6DXfwCSLbBZ+mRA9iyOBL8zgT9sZaZZ7Li6Qc0ucKCPxREmhpyG+yVgh1fdQtDbef0zKxGx/gn+J48Cvs5HVN8o51cIxJW07UJ5IVSoaUCU6ZP2KO7F/Yg7Qhl0wN1g== 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:(13230031)(4636009)(39860400002)(396003)(136003)(346002)(376002)(1800799009)(186009)(451199024)(82310400011)(46966006)(36840700001)(40470700004)(84970400001)(40480700001)(86362001)(36756003)(40460700003)(316002)(70206006)(6636002)(41300700001)(70586007)(110136005)(82740400003)(478600001)(81166007)(47076005)(7696005)(26005)(426003)(336012)(36860700001)(2906002)(83380400001)(8676002)(2616005)(15650500001)(44832011)(8936002)(5660300002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2023 10:39:27.7657 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 461335ef-89c8-4ad3-ba51-08dba2fc0f7b 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: AM7EUR03FT042.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB7706 X-Spam-Status: No, score=-11.6 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 List-Id: Update tests for the new branch-protection parser errors. gcc/testsuite/ChangeLog: * gcc.target/aarch64/branch-protection-attr.c: Update. * gcc.target/aarch64/branch-protection-option.c: Update. --- gcc/testsuite/gcc.target/aarch64/branch-protection-attr.c | 6 +++--- gcc/testsuite/gcc.target/aarch64/branch-protection-option.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/gcc.target/aarch64/branch-protection-attr.c b/gcc/testsuite/gcc.target/aarch64/branch-protection-attr.c index 272000c2747..dae2a758a56 100644 --- a/gcc/testsuite/gcc.target/aarch64/branch-protection-attr.c +++ b/gcc/testsuite/gcc.target/aarch64/branch-protection-attr.c @@ -4,19 +4,19 @@ void __attribute__ ((target("branch-protection=leaf"))) foo1 () { } -/* { dg-error {invalid protection type 'leaf' in 'target\("branch-protection="\)' pragma or attribute} "" { target *-*-* } 5 } */ +/* { dg-error {invalid argument 'leaf' for 'target\("branch-protection="\)'} "" { target *-*-* } 5 } */ /* { dg-error {pragma or attribute 'target\("branch-protection=leaf"\)' is not valid} "" { target *-*-* } 5 } */ void __attribute__ ((target("branch-protection=none+pac-ret"))) foo2 () { } -/* { dg-error "unexpected 'pac-ret' after 'none'" "" { target *-*-* } 12 } */ +/* { dg-error {argument 'none' can only appear alone in 'target\("branch-protection="\)'} "" { target *-*-* } 12 } */ /* { dg-error {pragma or attribute 'target\("branch-protection=none\+pac-ret"\)' is not valid} "" { target *-*-* } 12 } */ void __attribute__ ((target("branch-protection="))) foo3 () { } -/* { dg-error {missing argument to 'target\("branch-protection="\)' pragma or attribute} "" { target *-*-* } 19 } */ +/* { dg-error {invalid argument '' for 'target\("branch-protection="\)'} "" { target *-*-* } 19 } */ /* { dg-error {pragma or attribute 'target\("branch-protection="\)' is not valid} "" { target *-*-* } 19 } */ diff --git a/gcc/testsuite/gcc.target/aarch64/branch-protection-option.c b/gcc/testsuite/gcc.target/aarch64/branch-protection-option.c index 1b3bf4ee2b8..e2f847a31c4 100644 --- a/gcc/testsuite/gcc.target/aarch64/branch-protection-option.c +++ b/gcc/testsuite/gcc.target/aarch64/branch-protection-option.c @@ -1,4 +1,4 @@ /* { dg-do "compile" } */ /* { dg-options "-mbranch-protection=leaf -mbranch-protection=none+pac-ret" } */ -/* { dg-error "unexpected 'pac-ret' after 'none'" "" { target *-*-* } 0 } */ +/* { dg-error "argument 'none' can only appear alone in '-mbranch-protection='" "" { target *-*-* } 0 } */ -- 2.25.1