Message ID | 825aace6-75a9-1d11-a269-72dc9a82c311@arm.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=YA4CTg5M; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=YA4CTg5M; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48cMnK21B7z9s3x for <incoming@patchwork.ozlabs.org>; Wed, 11 Mar 2020 04:40:35 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 863C4395A05C; Tue, 10 Mar 2020 17:40:31 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70042.outbound.protection.outlook.com [40.107.7.42]) by sourceware.org (Postfix) with ESMTPS id 182BD387701F for <gcc-patches@gcc.gnu.org>; Tue, 10 Mar 2020 17:40:30 +0000 (GMT) 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=WvTIAoFkzdXPkwdoQiCP7H+SJWtWR3eLimoNqTJgTvI=; b=YA4CTg5MFdhvVKMH+JQ1mviSxNBYLiHGqjqjd3T9E+I9DA+Uzn7Jvjp6uU3G3QfRTvOnVFKXJ8PKBZktL90cj3YVz3ZnKyB/Oln4x3Zket2W5wchssrd4+PLVu1xJep6zBMCVe78uL2YbWrnJA6UM6C55uFYFuR7sWbANG0dP40= Received: from VI1PR04CA0068.eurprd04.prod.outlook.com (2603:10a6:802:2::39) by HE1PR0801MB1866.eurprd08.prod.outlook.com (2603:10a6:3:4e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.17; Tue, 10 Mar 2020 17:40:28 +0000 Received: from VE1EUR03FT057.eop-EUR03.prod.protection.outlook.com (2603:10a6:802:2:cafe::74) by VI1PR04CA0068.outlook.office365.com (2603:10a6:802:2::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.15 via Frontend Transport; Tue, 10 Mar 2020 17:40:27 +0000 Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; gcc.gnu.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; gcc.gnu.org; dmarc=bestguesspass 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; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT057.mail.protection.outlook.com (10.152.19.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.11 via Frontend Transport; Tue, 10 Mar 2020 17:40:27 +0000 Received: ("Tessian outbound 846b976b3941:v42"); Tue, 10 Mar 2020 17:40:27 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: ac150fe045294b02 X-CR-MTA-TID: 64aa7808 Received: from 43255565f650.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 1C5F42B6-8CDB-42DD-A570-B5AB905D64DE.1; Tue, 10 Mar 2020 17:40:21 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 43255565f650.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 10 Mar 2020 17:40:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KFCoUTgawZlj3295dGH4zLy2S1A3Mc52IKdOyWIM18UTWU6T+40iVUgyhX7eGCnuBWNmkOHHJRiTm+BEN8mjGTvLV9hmPApJt06J3CX/0HXL8j+8K38oy6uucTdknc5w0JlLHWqcHnI0NHXM5O5aOvb2tgHZH9W7FABkuIIG6m3GWX9uqquazAJQlGk28VC8qSMeDWPLItLXmVTlrUWUsoiA+j8mkPiMO3Bg7FI0eVpWBo6Z+yf85j5ih3ORERqHwpnqd/jyi4HkFXm342QlZWk7tb7ed1HzlQ4eieaxkVBdYR0eWRXK072UbjlLvS5jCbECuhDIKmFIHEYMtxJ2Fw== 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-SenderADCheck; bh=WvTIAoFkzdXPkwdoQiCP7H+SJWtWR3eLimoNqTJgTvI=; b=kPVo75mkJLjcpZUE56p/gcS/mK77w1ZkKGq+uRTmbTAneoNqYys5ZZy9JjVBecPq1bykbzY/yUNImVEEcB+8CvVfYLibaRGlr5MHqRZBp79G+Js9wFV1ddA16XpXHRaMX2kSCMCnZv1UqeHc4NBzihCo/+ELjTigGz1p0sxeh9/94NU1n1sCdiwnhce2I/CdB/iWWI5tx3BgC8g36OielWsLTAqOWxdIWA6I+JflGeyGAKQZDlgORFtXci1u3lBiAKIBgdYDhY0KtkPhFu9izu03DdWAwSKAe6jr94fCjl57be7kJtzXFXvxlFK3yrXNfBIRwPxKS4pHt74i56sGOQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; 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=WvTIAoFkzdXPkwdoQiCP7H+SJWtWR3eLimoNqTJgTvI=; b=YA4CTg5MFdhvVKMH+JQ1mviSxNBYLiHGqjqjd3T9E+I9DA+Uzn7Jvjp6uU3G3QfRTvOnVFKXJ8PKBZktL90cj3YVz3ZnKyB/Oln4x3Zket2W5wchssrd4+PLVu1xJep6zBMCVe78uL2YbWrnJA6UM6C55uFYFuR7sWbANG0dP40= Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Matthew.Malcomson@arm.com; Received: from AM6PR08MB4326.eurprd08.prod.outlook.com (20.179.6.11) by AM6PR08MB2981.eurprd08.prod.outlook.com (52.135.163.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.11; Tue, 10 Mar 2020 17:40:19 +0000 Received: from AM6PR08MB4326.eurprd08.prod.outlook.com ([fe80::c1d6:aa32:5f9:73cc]) by AM6PR08MB4326.eurprd08.prod.outlook.com ([fe80::c1d6:aa32:5f9:73cc%5]) with mapi id 15.20.2793.013; Tue, 10 Mar 2020 17:40:19 +0000 Subject: Fwd: [testsuite] Add @ lines to check-function-bodies fluff References: <AM6PR08MB4326008600F84DCA2DD0E62EE0FF0@AM6PR08MB4326.eurprd08.prod.outlook.com> To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org> From: Matthew Malcomson <matthew.malcomson@arm.com> X-Forwarded-Message-Id: <AM6PR08MB4326008600F84DCA2DD0E62EE0FF0@AM6PR08MB4326.eurprd08.prod.outlook.com> Message-ID: <825aace6-75a9-1d11-a269-72dc9a82c311@arm.com> Date: Tue, 10 Mar 2020 17:40:12 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 In-Reply-To: <AM6PR08MB4326008600F84DCA2DD0E62EE0FF0@AM6PR08MB4326.eurprd08.prod.outlook.com> Content-Type: multipart/mixed; boundary="------------B4D270D4A6B89EAC6D04A44A" Content-Language: en-US X-ClientProxiedBy: DM6PR18CA0016.namprd18.prod.outlook.com (2603:10b6:5:15b::29) To AM6PR08MB4326.eurprd08.prod.outlook.com (2603:10a6:20b:b9::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.2.78.69] (217.140.106.52) by DM6PR18CA0016.namprd18.prod.outlook.com (2603:10b6:5:15b::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.15 via Frontend Transport; Tue, 10 Mar 2020 17:40:17 +0000 X-Forwarded-Message-Id: <AM6PR08MB4326008600F84DCA2DD0E62EE0FF0@AM6PR08MB4326.eurprd08.prod.outlook.com> X-Originating-IP: [217.140.106.52] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b6f33662-ac67-49a4-4d20-08d7c51a1f0d X-MS-TrafficTypeDiagnostic: AM6PR08MB2981:|AM6PR08MB2981:|HE1PR0801MB1866: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <HE1PR0801MB18660C86CE48F3BE6803EA1EE0FF0@HE1PR0801MB1866.eurprd08.prod.outlook.com> x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:1850;OLM:1850; X-Forefront-PRVS: 033857D0BD X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(396003)(376002)(136003)(39860400002)(366004)(346002)(189003)(199004)(316002)(36756003)(31696002)(16576012)(4326008)(5660300002)(2906002)(6666004)(478600001)(235185007)(54906003)(44832011)(956004)(81166006)(8936002)(81156014)(8676002)(31686004)(66556008)(26005)(66616009)(66476007)(66946007)(2616005)(6916009)(86362001)(52116002)(16526019)(33964004)(186003)(6486002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR08MB2981; H:AM6PR08MB4326.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: BO7/9RTpOGcc6X2sLmLvzUSwnhp3FnJGbPyDn1Sust8QexRy18vj1OmK0KGZ7ic3Xnaj2KjUznU2uBakUlA32wYVaVBDkL7DFJ8UspTlLnhGiATQymcwPdx/uI69Jcb/KzPF/n812AWJzeeYq5vy1zjPVTvnwzHqDlm+WQkg5TR5DEGUC25fo1/+GJwfBKYnARafo8n39DQzVJqjLV0bIurqZTs6DYGt2SpHB0NbuKrvMpbGtJ2EKyE7Sxc/aRqD2AsHkE142d/qlCjyJM5XhO+7DcGhKUoXzF190JgzBnPZZapTGu/WUvTq3bDzmpbcq216Ob96ftq1bosoIZJYpd5WZ7C8hruq3UY5gTeyUuW+ZAGseq0wXIjFA6KcLsenrrGRtKuHYAix+xCobIELQq+06m+OpuZ06xVZobqUCOvwY8rjHXvmFbozQr7fnoy+ X-MS-Exchange-AntiSpam-MessageData: GXr5h9qprKF5m5DxZmlxFaNBJY6cYnkrrDgca4mLBy3bFMx4vKKLMDk68pWsJXggq7r3nNR9h1tAUayrLnwUo7Pz8/i/1hvuuDXgTe9HBDHUE+I08RJrCHmfzikBbwok8tPFTpqR/G1JJ1VGnhl6gw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB2981 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Matthew.Malcomson@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT057.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; IPV:CAL; SCL:-1; CTRY:IE; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(376002)(136003)(39860400002)(396003)(346002)(189003)(199004)(54906003)(36906005)(16576012)(81156014)(5660300002)(81166006)(235185007)(33964004)(6666004)(356004)(8676002)(316002)(2906002)(66616009)(31686004)(26005)(86362001)(70586007)(8936002)(36756003)(6486002)(31696002)(4326008)(70206006)(2616005)(16526019)(956004)(26826003)(478600001)(336012)(44832011)(6916009)(186003)(107886003); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0801MB1866; H:64aa7808-outbound-1.mta.getcheckrecipient.com; FPR:; SPF:Pass; LANG:en; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; MX:1; A:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: 8bb88078-f627-4a8b-c148-08d7c51a19fb X-Forefront-PRVS: 033857D0BD X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KplrqdPrC9XaFygztJD4fOR86wYt6a/DyFMZMC+SrHu6auhZiZM3QvKhf0KOkvaP43HpgRsBLTxeaGTAEjjBO4oG0SXImU+9SqH/+9CqR8czvhb0GA33pW4NS9QWnDMHwJTNMi9BFPvsWonzKIdiF4t+nUDgIbW6xnsbDqUZ2Nkmj6MhQBDd7kzecuOseqiyw4a89OGCYu+N84dWcLy1p41cwkPyypFy7pGJfrhnHORKSs+2uTnYkhpLFDJENGTguwCS5IHdqMVwjm6w9tTAlW7JAW7e+6shyq63vRDMISJyPsGTGOi1WSStAMi31dEfi2qADEgh2dPySAOSOrtXdOOQBBnuKwROP0UetNoM+lSP3DFyLf2VVRPvf4TSIIaeNUKEY3mVHiAUdjLy5JetMvXwjsjIkL+DcgPjGKW12ZkakOmyBmZyVm37riprMkq4 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2020 17:40:27.5910 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b6f33662-ac67-49a4-4d20-08d7c51a1f0d 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-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1866 X-Spam-Status: No, score=-26.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <http://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <http://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <http://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces@gcc.gnu.org> |
Series |
[testsuite] Add @ lines to check-function-bodies fluff
|
expand
|
diff --git a/gcc/testsuite/lib/scanasm.exp b/gcc/testsuite/lib/scanasm.exp index 5ca58d4042027683da12bc2a1d161195cd6439e7..f7d27735112f8edd8a39a326020c3d08dd36e765 100644 --- a/gcc/testsuite/lib/scanasm.exp +++ b/gcc/testsuite/lib/scanasm.exp @@ -569,7 +569,7 @@ proc parse_function_bodies { filename result } { set terminator {^\s*\.size} # Regexp for lines that aren't interesting. - set fluff {^\s*(?:\.|//)} + set fluff {^\s*(?:\.|//|@)} set fd [open $filename r] set in_function 0
Cc'ing maintainers and original author of `check-function-bodies`. It looks like I missed that the first time around. -------- Forwarded Message -------- Subject: [testsuite] Add @ lines to check-function-bodies fluff Date: Tue, 10 Mar 2020 17:22:52 +0000 From: Matthew Malcomson <matthew.malcomson@arm.com> To: gcc-patches@gcc.gnu.org CC: nd@arm.com When using `check-function-bodies`, the subroutine `parse_function_bodies` uses the `fluff` regexp to remove uninteresting assembly lines. Arm targets generate assembly with some lines prefixed by `@`, these lines are left by this process. As an example of some lines prefixed by `@': the assembly output from the `stacktest1` function in "bfloat16_simd_3_1.c" is: .align 2 .global stacktest1 .arch armv8.2-a .syntax unified .arm .fpu neon-fp-armv8 .type stacktest1, %function stacktest1: @ args = 0, pretend = 0, frame = 8 @ frame_needed = 0, uses_anonymous_args = 0 @ link register save eliminated. sub sp, sp, #8 add r3, sp, #6 vst1.16 {d0[0]}, [r3] vld1.16 {d0[0]}, [r3] add sp, sp, #8 @ sp needed bx lr .size stacktest1, .-stacktest1 It seems that previous uses of `check-function-bodies` in the arm backend have avoided problems with such lines since they use the `...` regexp in each place such fluff occurs. I'm currently writing a patch that I'd like to match the entire function body, so I'd like to remove such `@` lines automatically. gcc/testsuite/ChangeLog: 2020-03-10 Matthew Malcomson <matthew.malcomson@arm.com> * lib/scanasm.exp (parse_function_bodies): Lines starting with '@' also counted as fluff. ############### Attachment also inlined for ease of reply ############### diff --git a/gcc/testsuite/lib/scanasm.exp b/gcc/testsuite/lib/scanasm.exp index 5ca58d4042027683da12bc2a1d161195cd6439e7..f7d27735112f8edd8a39a326020c3d08dd36e765 100644 --- a/gcc/testsuite/lib/scanasm.exp +++ b/gcc/testsuite/lib/scanasm.exp @@ -569,7 +569,7 @@ proc parse_function_bodies { filename result } { set terminator {^\s*\.size} # Regexp for lines that aren't interesting. - set fluff {^\s*(?:\.|//)} + set fluff {^\s*(?:\.|//|@)} set fd [open $filename r] set in_function 0