From patchwork Mon Sep 18 14:46:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 76287 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EA6A9385DC01 for ; Mon, 18 Sep 2023 14:47:35 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id E3C4E385735E for ; Mon, 18 Sep 2023 14:46:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E3C4E385735E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-CSE-ConnectionGUID: ZMadPQjhRl+hUwcYMId03A== X-CSE-MsgGUID: VPzFHeilRWqRz+mylwWhXA== X-IronPort-AV: E=Sophos;i="6.02,156,1688457600"; d="scan'208,223";a="17160967" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 18 Sep 2023 06:46:55 -0800 IronPort-SDR: JU2R9kVMmvzojuCF3tW/iBA2pRFQG43Dm+gUJszPYmy3v7fSkbn0U21NnV4X5HNF6HV93EGf6i HWjqsGmDa7el+bZwFqIDBV7GP9/Iv7C5g6BCCSsasqUQeSjpFRkWM3E06wW5iRHKun1f3zMsh0 axaeCdtht4Q/IoycdW8rkv4QPKL1Mrmcqx0yJpwr5F2Iv6sr6Go5MtrFfy1LqButF0lOZaqafo Pfiuyk760QLfvfdmMHZheJ4w+D+9bDARvUmx7C4/rJ8OEg8n/wvWq5vT0o+FUqocDhz5xyr4rp PDo= From: Thomas Schwinge To: CC: Tom de Vries Subject: Fix up 'g++.dg/abi/nvptx-ptrmem1.C' (was: [PTX] more register cleanups) In-Reply-To: <56707CCC.8020400@acm.org> References: <56707CCC.8020400@acm.org> User-Agent: Notmuch/0.29.3+94~g74c3f1b (https://notmuchmail.org) Emacs/28.2 (x86_64-pc-linux-gnu) Date: Mon, 18 Sep 2023 16:46:49 +0200 Message-ID: <87bkdzy1wm.fsf@euler.schwinge.homeip.net> MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-14.mgc.mentorg.com (139.181.222.14) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" Hi! On 2015-12-15T15:49:16-0500, Nathan Sidwell wrote: > this patch uses reg_names array to emit register names, rather than have > knowledge scattered throughout the PTX backend. Also, converted > write_fn_proto_from_insn to use (renamed) write_arg_mode and (new) > write_return_mode. Pushed to master branch commit 3049501db3a31d10c84fc42b306e29b6fe68330f "Fix up 'g++.dg/abi/nvptx-ptrmem1.C'", see attached. Grüße Thomas ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955 From 3049501db3a31d10c84fc42b306e29b6fe68330f Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Mon, 18 Sep 2023 16:34:47 +0200 Subject: [PATCH] Fix up 'g++.dg/abi/nvptx-ptrmem1.C' ..., which shortly after its inception in commit 44eba92d0a0594bda5b53fcb3c8f84f164c653b6 (Subversion r231628) "[PTX] parameters and return values" was forgotten to be updated in next day's commit 1f0659546bcf5b95c3263cdc73149f6c2a05ebe1 (Subversion r231663) "[PTX] more register cleanups". Fix it up now, as obvious, for the current state of things. gcc/testsuite/ * g++.dg/abi/nvptx-ptrmem1.C: Fix up. --- gcc/testsuite/g++.dg/abi/nvptx-ptrmem1.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/g++.dg/abi/nvptx-ptrmem1.C b/gcc/testsuite/g++.dg/abi/nvptx-ptrmem1.C index 08ffd7e373e..0c57f29fa21 100644 --- a/gcc/testsuite/g++.dg/abi/nvptx-ptrmem1.C +++ b/gcc/testsuite/g++.dg/abi/nvptx-ptrmem1.C @@ -9,7 +9,7 @@ struct A{}; typedef int A::*pmd; typedef void (A::*pmf) (); -// { dg-final { scan-assembler ".extern .func \\(.param.u64 %out_retval\\) _Z8dcl_rpmdv;" } } +// { dg-final { scan-assembler ".extern .func \\(.param.u64 %value_out\\) _Z8dcl_rpmdv;" } } pmd dcl_rpmd (); // { dg-final { scan-assembler ".extern .func _Z8dcl_rpmfv \\(.param.u64 %in_ar0\\);" } } @@ -29,7 +29,7 @@ void test_1 () dcl_apmf (0); } -// { dg-final { scan-assembler-times ".visible .func \\(.param.u64 %out_retval\\) _Z8dfn_rpmdv(?:;|\[\r\n\]+\{)" 2 } } +// { dg-final { scan-assembler-times ".visible .func \\(.param.u64 %value_out\\) _Z8dfn_rpmdv(?:;|\[\r\n\]+\{)" 2 } } pmd dfn_rpmd () { return 0; -- 2.34.1