From patchwork Fri Dec 2 12:03:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 28890 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp797915wrr; Fri, 2 Dec 2022 04:05:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf7UKMUoadTF0BV9J5QRzXUPdbhyrL4iNRZAYuc6h5cxZ6PvVTi+3X2J11LlvCiZB5UCXbVj X-Received: by 2002:a17:906:6b8a:b0:7c0:af01:a965 with SMTP id l10-20020a1709066b8a00b007c0af01a965mr6265903ejr.192.1669982718935; Fri, 02 Dec 2022 04:05:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669982718; cv=none; d=google.com; s=arc-20160816; b=po/ubYcE1pUZOaVukqZwTp9WkCfW7FORKhXJW0/NK8S52jA5dMk5/spAns8EoXBIJx yIFSnFFgnROCn7nayoWD9LCx0VV+eCLJpU1b0gTpx4ORxym6bGM3RP9I+33ThQvSj1CY TZKiEZQqC4TgUuWwzR1OAw12qQO3sP4gxsCZv/iSX0A0+BR1pctCPpFMXafuOnySVuvv WgVA3Mq2kEAh6E1MnDXxtOoEipibj6Da9se/zn8yLWhIi5p8XIPjLNR+Uvlx51hUunKO Y21MwBUf7aw66Agq+JShpfVla6TNcEkgkFy2mTW2IU4zFrCB4yftw2A+hSxASMGJS6t8 5HUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :ironport-sdr:dmarc-filter:delivered-to; bh=J2i4s8tAfSDLODkEmUJLXyTSF7zuXZJTgQDDFAIVM+8=; b=YHSKvdp/FmKlboxmG8n8M+h7/Dt7YZ5rh5w5LU5VTw/3gEquoas4gTrsw9bfTAP8Hr dHy0Hd47Pl+UyTMCa48awV9tXxTa6D5SuCh/zAOhTSD2e0DSROUwCD+huZUGvQcYvsn9 z+xzCqkp/DyQr3UtQMfWzqlKVU7mv6/v7X4nwufqBE3C62EGjMseG9oBNuFcpFMLxqNs Q84/mWzSz89OlFTMYaeUXPBnEyWWB91uQS7Qwr0bENhMzVNAwE10fdTqrF18gicLAeF+ /a3tahQT7ftdyMc7RfWFGp0FOBIJ15mVhWFsjXZa0Y6Mwus/xePhXXVIkPOff1+P3crU waYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ht17-20020a170907609100b007ae61d89b3esi6810602ejc.356.2022.12.02.04.05.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 04:05:18 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9BA573855142 for ; Fri, 2 Dec 2022 12:04:03 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 1F9823858004 for ; Fri, 2 Dec 2022 12:03:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1F9823858004 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-IronPort-AV: E=Sophos;i="5.96,212,1665475200"; d="scan'208";a="91487258" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 02 Dec 2022 04:03:30 -0800 IronPort-SDR: 9WFWCoc7ztTHO73Pqgo41AXUIcLppU6tSe0yaSssWGMkvQBUUYaLCexPSLEwyaJ4FLaIcA1rWo 7wNzPcnpEAG4rMdscl0+3G3L/UlxXSWsfL1hKvihi1+KPFK/Dj6+wjkC45hdAPU9KdU7GH/UKJ 8E8G02TpaDP1GLt829Gdo1C6O4mjDHsyEtg/nF2gWMAN0FU1dmEYvrZopTCvcgIZJhPQaDvOa4 9jGbSE6i+qU/JgRItAbgh83hiT/oo6AnVMx5v0MOhfwzIFMeN488Us4hPyjZ6pcxdLzsIwk8ms qc0= From: Thomas Schwinge To: , Subject: [PATCH 2/9] nvptx: Re-enable "ptxas times out" test cases Date: Fri, 2 Dec 2022 13:03:08 +0100 Message-ID: <20221202120315.803120-3-thomas@codesourcery.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221202120315.803120-1-thomas@codesourcery.com> References: <20221202120315.803120-1-thomas@codesourcery.com> MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-09.mgc.mentorg.com (139.181.222.9) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-11.9 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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?1751103799518904040?= X-GMAIL-MSGID: =?utf-8?q?1751103799518904040?= These are all quick to compile and generally PASS with: $ ptxas --version ptxas: NVIDIA (R) Ptx optimizing assembler Copyright (c) 2005-2018 NVIDIA Corporation Built on Sun_Sep__9_21:06:46_CDT_2018 Cuda compilation tools, release 10.0, V10.0.145 (Tested 'gcc.c-torture/compile/920501-4.c' with 'dg-require-stack-size' defused as per "nvptx: stack size limits are relevant for execution only".) Only 'gcc.c-torture/compile/limits-fndefn.c' now generally FAILs (but not due to "ptxas times out"), with: ptxas limits-fndefn.o, line 8; fatal : Parsing error near '.visible': syntax error ptxas fatal : Ptx assembly aborted due to errors nvptx-as: ptxas returned 255 exit status Work around that by '-Wa,--no-verify'; to be analyzed further, later on. gcc/testsuite/ * gcc.c-torture/compile/920501-4.c: Re-enable nvptx "ptxas times out" variants. * gcc.c-torture/compile/921011-1.c: Likewise. * gcc.c-torture/compile/limits-fndefn.c: Likewise. * gcc.c-torture/compile/pr34334.c: Likewise. * gcc.c-torture/compile/pr37056.c: Likewise. * gcc.c-torture/compile/pr39423-1.c: Likewise. * gcc.c-torture/compile/pr49049.c: Likewise. * gcc.c-torture/compile/pr59417.c: Likewise. --- gcc/testsuite/gcc.c-torture/compile/920501-4.c | 1 - gcc/testsuite/gcc.c-torture/compile/921011-1.c | 2 -- gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c | 6 +++++- gcc/testsuite/gcc.c-torture/compile/pr34334.c | 1 - gcc/testsuite/gcc.c-torture/compile/pr37056.c | 1 - gcc/testsuite/gcc.c-torture/compile/pr39423-1.c | 1 - gcc/testsuite/gcc.c-torture/compile/pr49049.c | 2 -- gcc/testsuite/gcc.c-torture/compile/pr59417.c | 1 - 8 files changed, 5 insertions(+), 10 deletions(-) -- 2.35.1 ----------------- 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 diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-4.c b/gcc/testsuite/gcc.c-torture/compile/920501-4.c index 2ef54b5d35d4..e165e7fc5f3e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920501-4.c +++ b/gcc/testsuite/gcc.c-torture/compile/920501-4.c @@ -1,5 +1,4 @@ /* { dg-do assemble } */ -/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" } { "" } } */ /* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */ /* { dg-require-stack-size "8196*4" } */ diff --git a/gcc/testsuite/gcc.c-torture/compile/921011-1.c b/gcc/testsuite/gcc.c-torture/compile/921011-1.c index 5955b4c527dc..6cc707dc74c6 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921011-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921011-1.c @@ -1,5 +1,3 @@ -/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" } { "" } } */ - void fun (nb) int nb; diff --git a/gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c b/gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c index 532047354938..66addcccfb1e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c +++ b/gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c @@ -1,6 +1,10 @@ /* { dg-skip-if "too complex for avr" { avr-*-* } } */ -/* { dg-skip-if "ptxas times out" { nvptx-*-* } } */ /* { dg-skip-if "no chance for bpf" { bpf-*-* } } */ +/* { dg-additional-options -Wa,--no-verify { target nvptx-*-* } } + ptxas limits-fndefn.o, line 8; fatal : Parsing error near '.visible': syntax error + ptxas fatal : Ptx assembly aborted due to errors + nvptx-as: ptxas returned 255 exit status +*/ /* { dg-timeout-factor 4.0 } */ #define LIM1(x) x##0, x##1, x##2, x##3, x##4, x##5, x##6, x##7, x##8, x##9, #define LIM2(x) LIM1(x##0) LIM1(x##1) LIM1(x##2) LIM1(x##3) LIM1(x##4) \ diff --git a/gcc/testsuite/gcc.c-torture/compile/pr34334.c b/gcc/testsuite/gcc.c-torture/compile/pr34334.c index 5fa60a356049..30bb782626f8 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr34334.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr34334.c @@ -1,4 +1,3 @@ -/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "*" } { "-O0" } } */ __extension__ typedef __SIZE_TYPE__ size_t; __extension__ typedef long long int __quad_t; __extension__ typedef unsigned int __mode_t; diff --git a/gcc/testsuite/gcc.c-torture/compile/pr37056.c b/gcc/testsuite/gcc.c-torture/compile/pr37056.c index e709fdc1ffb2..f9285e2c7843 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr37056.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr37056.c @@ -1,4 +1,3 @@ -/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O2" "-Os" } { "" } } */ extern void abort (void); static union { diff --git a/gcc/testsuite/gcc.c-torture/compile/pr39423-1.c b/gcc/testsuite/gcc.c-torture/compile/pr39423-1.c index c604738b9cb6..34ebb66381a1 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr39423-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr39423-1.c @@ -1,5 +1,4 @@ /* PR target/39423 */ -/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O2" } { "" } } */ int foo (const char *name, int nmlen, char *flags) diff --git a/gcc/testsuite/gcc.c-torture/compile/pr49049.c b/gcc/testsuite/gcc.c-torture/compile/pr49049.c index f396e056fb30..a24b2a41c752 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr49049.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr49049.c @@ -1,5 +1,3 @@ -/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-Os" } { "" } } */ - __extension__ typedef unsigned long long int uint64_t; static int diff --git a/gcc/testsuite/gcc.c-torture/compile/pr59417.c b/gcc/testsuite/gcc.c-torture/compile/pr59417.c index 891ba66718a4..227c5d841059 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr59417.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr59417.c @@ -1,5 +1,4 @@ /* PR tree-optimization/59417 */ -/* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" "-O2" "-Os" } { "" } } */ int a, b, d; short c;