From patchwork Fri Dec 2 12:03:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 28891 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp798183wrr; Fri, 2 Dec 2022 04:05:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf76HRuu+j4jHjjBFGTNUy2ao/RwM8Rvz84EYTsU61Drpw2eldFlOCbAgfYllbEmivDqpG5c X-Received: by 2002:a17:907:a04c:b0:7c0:98e5:f886 with SMTP id gz12-20020a170907a04c00b007c098e5f886mr11366896ejc.516.1669982740300; Fri, 02 Dec 2022 04:05:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669982740; cv=none; d=google.com; s=arc-20160816; b=Fh6vsvAvEmF5kvtpeRGHfo1u/qz5x34VUNBv3nw6SE2tM631PU4AfXMUfm8Kq1V2aA qa00wds9l9gkr1/nZFQuROI1vLNH5RE292ngWJl5++eQVJeXYFQjHWFMywbSfnlVvx/7 Wiz9+bMjtkY3Cr0dUgHR2rEtLtt4PARoMkfIVcd0azoh8yr4PVDQJ/St4vGKPI6mrXzI poVkrrDfwR7IjXl5VFuVfMjWmzAZLTFeKF6SBYfbakEo3kbHm5hjrBKm9mOqloyfsFwD /f06sunelPNui8i/lT+BAkkb47AU+FbcUgPqMsSRn/kcn2SFg8K0Vgt6e6+hE6dVxlqo DIGQ== 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=1hXP/SODtDlMLP7t28V1e9+pCZYoY0cUovA1LTtfGEU=; b=Y617INBjkW0RgLqT7tPPaoHzsLVpuyUAsejaEPGJfTaVXfnZLCrYEnQcTu9BntQ039 RWfOEeUWhUcHoeIEDM4aMM93VaLAXf2Olx5U+y01WuWmtgXTSpgIcnFBan7ANZl9JQ+9 Qo90qIn3JrK628HSWc+CEHmdZUntkAYTZ7oUZGjBQ/QGz6HAeoFOFcI5+XO2G7PDXFXv jGmO1UCrrtB1QiOxM3rCkHn5sEdBBRJWxMrD0nel8/OIPGjDmJXMTCXwwB5AlWNiqdrn +FzkEl0uEMT+25QXiy86IWZbFnZDAAIQ9hguoEWMC5t0cTL7e3dCM74KNAr9ht27ogla iw5w== ARC-Authentication-Results: i=1; mx.google.com; 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" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id e4-20020a17090658c400b0078e27f2ef4bsi6626209ejs.956.2022.12.02.04.05.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 04:05:40 -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; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 189B8384E380 for ; Fri, 2 Dec 2022 12:04:09 +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 0D20F385842D for ; Fri, 2 Dec 2022 12:03:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0D20F385842D 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="91487253" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 02 Dec 2022 04:03:28 -0800 IronPort-SDR: 3qPf9cJdZekj1xj4ymRIcZyzdf95SuKLg7k02HTFMZ6oAivRNfNMloY1sDbxkGw87/J9+eY4kN lPwuMaUzR/CzPqokl/8qhspKgW2BphdpO6NNMpNYfDj77GsZ9tzcpzr5HveNiSJJvHGw0csaeU QRw1yrrEomgj/i1SoAWP17gIOiJrVX6DlI5EaPoQ9Y2yLwJAUCcX1ZIsvH1beX5RKh3SpId59C nGJ5ndMZPUTXx4IWqArhb+CzNluQlNgdzZh+cI/hKkFSwECfBG+1ec4+EMuViS4vVKK5TAYWnc Exw= From: Thomas Schwinge To: , Subject: [PATCH 1/9] nvptx: Re-enable 'gcc.c-torture/compile/20080721-1.c' Date: Fri, 2 Dec 2022 13:03:07 +0100 Message-ID: <20221202120315.803120-2-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-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.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?1751103821580644605?= X-GMAIL-MSGID: =?utf-8?q?1751103821580644605?= PASSes 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 gcc/testsuite/ * gcc.c-torture/compile/20080721-1.c: Re-enable for nvptx. --- gcc/testsuite/gcc.c-torture/compile/20080721-1.c | 1 - 1 file changed, 1 deletion(-) -- 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/20080721-1.c b/gcc/testsuite/gcc.c-torture/compile/20080721-1.c index 6c928f55ca10..35ef352bc6da 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20080721-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20080721-1.c @@ -1,4 +1,3 @@ -/* { dg-skip-if "can't read function data" { nvptx-*-* } } */ void foo(void); void bar(void); 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; From patchwork Fri Dec 2 12:03:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 28893 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp798944wrr; Fri, 2 Dec 2022 04:06:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf6n1cC+TCWH5eRF6s3HsgD2hXe2GnmRrcoR7gMboWLxnn02VbylnVV0vI/pVAFN+fXi3gYG X-Received: by 2002:aa7:cfc4:0:b0:46b:d83e:984c with SMTP id r4-20020aa7cfc4000000b0046bd83e984cmr8137849edy.60.1669982813679; Fri, 02 Dec 2022 04:06:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669982813; cv=none; d=google.com; s=arc-20160816; b=yNJfihAm/1RpGAD+nIpdXgwYfSwd9DD0ZQlsnzguhY5gbK0K2MuLv+beq5rg0dCWGJ A7KeTtF7xoMfAmE7u2DjxsLpjqnD+YdSL5iGirVv7m+DJjRo7OduuwkQyk59Ml/53UqL hjrOPRpWwbceGRNEZHuaBSEXbddr8lnWw8f6/6nHB+2S3cg+KqKilpmJluPKmx83Gz9O VdUKXKbi+eZo8Zn+8zPAs8rYO4+Jb4ZfQQG6RE9JQmD9zfW3NYQqxpwOQSicE9uD0nON cEeIArzHgLWuBblb2iO2IaZy8iDqs4ywqzPdLFO/b+Q6ZK4TcHs/rnfTcTWixHAdSxsz gHWw== 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=u3nS7cEzq/zeHECxiGGP+1RM+bP8P4AckNKpoHL+EXk=; b=YdBEpmHuKLIr9JqMVBAC6uc45dijIYnhTdBxW3N6dM4/R+9Qhl0tnfbqaUuTYeVuEj g+/dq8WzOBdNCFbBUO+dH4UlAJ+zwQ4rgx7layX1EAq89abF7gBsWMSUVOUzRV86pCHA e4i4YIH9LYArayd0qavMLWHoXNgzB3QgAURXaHbFMJjM+B+0+288DdnhO/FzeisLWJ+J IGdADUaBxlciHGy9/8MosQL5DSp1kl+ADwntyiCvngY9WnJmjvyVfh38GO+tClev31EY EKWv/gjNdQdVuBr5UQWyi4Ou9TZyRYIX6IjNQb9el+mhnFscq86NzFO1VhIaJgH1ekLz LS7g== 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 h12-20020a05640250cc00b004692dec65dbsi296632edb.259.2022.12.02.04.06.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 04:06:53 -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 75FA63854575 for ; Fri, 2 Dec 2022 12:04:34 +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 2A7083858425 for ; Fri, 2 Dec 2022 12:03:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2A7083858425 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="91487263" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 02 Dec 2022 04:03:34 -0800 IronPort-SDR: 3+00mIcVa706CHyxUBu2Wr5vGD+DOoaDC3he7/K2MMwy3C1abzSJfeGzjPuo93pS/RmxqKAwWV xEBmNyWyIMT74YqmvyWGnaTMekceEU2tMYqT1sgAJMQA2hanzie//jOyzv9Lbsnlo530Aod+Az xBqQ9cTXaLlgY3ZqJLUrtp34yN/vdHu9YSUkVGuS83Lq/+zBEWgSNMpYWKWzXOKyVykapuIm9l 3bJJdChIavl2zjFD0H4RzPqszNNnDf3LZ4tQ3KDyOhVPkHvzQYOeod5Yqe6NvDWdWr1UtBz7ej edQ= From: Thomas Schwinge To: , Subject: [PATCH 3/9] nvptx: Re-enable test cases by removing effective target 'freestanding' Date: Fri, 2 Dec 2022 13:03:09 +0100 Message-ID: <20221202120315.803120-4-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-10.mgc.mentorg.com (139.181.222.10) 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?1751103898553183970?= X-GMAIL-MSGID: =?utf-8?q?1751103898553183970?= After 2014's commit 157e859ffe3b5d43db1e19475711c1a3d21ab57a "remove picochip", the effective target 'freestanding' (later) was only ever used for nvptx. However, the relevant I/O library functions have long been implemented in nvptx newlib, and otherwise, the more specific effective target 'fileio' (as added in commit r10-7943-g3685c5adf5c0b30268cb8f95c89e4c4a3240ae6f "introduce target fileio and require it in tests that use tmpnam") may be used, and already is used in the relevant test cases. Therefore, I suggest "removing effective target 'freestanding'" instead of letting it linger unused, and thus unmaintained. These test cases generally PASS, just a few need to get XFAILed; see , and then supposedly for description of the non-standard PTX 'vprintf' return value: > Unlike the C-standard 'printf()', which returns the number of characters > printed, CUDA's 'printf()' returns the number of arguments parsed. If no > arguments follow the format string, 0 is returned. If the format string is > NULL, -1 is returned. If an internal error occurs, -2 is returned. (I've tried a few variants to confirm that PTX 'vprintf' -- which supposedly is underlying the CUDA 'printf' -- is what's implementing this behavior.) Probably, we ought to fix that up in nvptx newlib. gcc/doc/ * sourcebuild.texi (Effective-Target Keywords): Remove 'freestanding'. gcc/testsuite/ * gcc.c-torture/execute/builtins/fprintf.x: Remove. * gcc.c-torture/execute/builtins/fputs.x: Likewise. * gcc.c-torture/execute/complex-6.c: Don't gate on 'freestanding'. * gcc.c-torture/execute/fprintf-1.c: Likewise. * gcc.c-torture/execute/fprintf-2.c: Likewise. * gcc.c-torture/execute/fprintf-chk-1.c: Likewise. * gcc.c-torture/execute/gofast.c: Likewise. * gcc.c-torture/execute/pr34456.c: Likewise. * gcc.c-torture/execute/printf-1.c: Likewise. * gcc.c-torture/execute/printf-2.c: Likewise. * gcc.c-torture/execute/printf-chk-1.c: Likewise. * gcc.c-torture/execute/user-printf.c: Likewise. * gcc.c-torture/execute/vfprintf-1.c: Likewise. * gcc.c-torture/execute/vfprintf-chk-1.c: Likewise. * gcc.c-torture/execute/vprintf-1.c: Likewise. * gcc.c-torture/execute/vprintf-chk-1.c: Likewise. * gcc.dg/pr27531-1.c: Likewise. * gcc.dg/pr44606.c: Likewise. * lib/target-supports.exp (check_effective_target_freestanding): Remove. --- gcc/doc/sourcebuild.texi | 5 ----- gcc/testsuite/gcc.c-torture/execute/builtins/fprintf.x | 7 ------- gcc/testsuite/gcc.c-torture/execute/builtins/fputs.x | 7 ------- gcc/testsuite/gcc.c-torture/execute/complex-6.c | 2 -- gcc/testsuite/gcc.c-torture/execute/fprintf-1.c | 2 -- gcc/testsuite/gcc.c-torture/execute/fprintf-2.c | 3 +-- gcc/testsuite/gcc.c-torture/execute/fprintf-chk-1.c | 2 -- gcc/testsuite/gcc.c-torture/execute/gofast.c | 2 -- gcc/testsuite/gcc.c-torture/execute/pr34456.c | 2 -- gcc/testsuite/gcc.c-torture/execute/printf-1.c | 2 +- gcc/testsuite/gcc.c-torture/execute/printf-2.c | 3 +-- gcc/testsuite/gcc.c-torture/execute/printf-chk-1.c | 2 +- gcc/testsuite/gcc.c-torture/execute/user-printf.c | 3 +-- gcc/testsuite/gcc.c-torture/execute/vfprintf-1.c | 2 -- gcc/testsuite/gcc.c-torture/execute/vfprintf-chk-1.c | 2 -- gcc/testsuite/gcc.c-torture/execute/vprintf-1.c | 2 +- gcc/testsuite/gcc.c-torture/execute/vprintf-chk-1.c | 2 +- gcc/testsuite/gcc.dg/pr27531-1.c | 1 - gcc/testsuite/gcc.dg/pr44606.c | 1 - gcc/testsuite/lib/target-supports.exp | 10 ---------- 20 files changed, 7 insertions(+), 55 deletions(-) delete mode 100644 gcc/testsuite/gcc.c-torture/execute/builtins/fprintf.x delete mode 100644 gcc/testsuite/gcc.c-torture/execute/builtins/fputs.x -- 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/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index fc488964480f..cfdd5cfe1a6f 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -2623,11 +2623,6 @@ Target offers such file I/O library functions as @code{fopen}, requirement for the presence of the functions in the library; even if they fail at runtime, the requirement is still regarded as satisfied. -@item freestanding -Target is @samp{freestanding} as defined in section 4 of the C99 standard. -Effectively, it is a target which supports no extra headers or libraries -other than what is considered essential. - @item gettimeofday Target supports @code{gettimeofday}. diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/fprintf.x b/gcc/testsuite/gcc.c-torture/execute/builtins/fprintf.x deleted file mode 100644 index c8fdaf5b2547..000000000000 --- a/gcc/testsuite/gcc.c-torture/execute/builtins/fprintf.x +++ /dev/null @@ -1,7 +0,0 @@ -load_lib target-supports.exp - -if { [check_effective_target_freestanding] } { - return 1; -} - -return 0; diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/fputs.x b/gcc/testsuite/gcc.c-torture/execute/builtins/fputs.x deleted file mode 100644 index c8fdaf5b2547..000000000000 --- a/gcc/testsuite/gcc.c-torture/execute/builtins/fputs.x +++ /dev/null @@ -1,7 +0,0 @@ -load_lib target-supports.exp - -if { [check_effective_target_freestanding] } { - return 1; -} - -return 0; diff --git a/gcc/testsuite/gcc.c-torture/execute/complex-6.c b/gcc/testsuite/gcc.c-torture/execute/complex-6.c index 75f921080886..082c7e7cf514 100644 --- a/gcc/testsuite/gcc.c-torture/execute/complex-6.c +++ b/gcc/testsuite/gcc.c-torture/execute/complex-6.c @@ -1,5 +1,3 @@ -/* { dg-skip-if "requires io" { freestanding } } */ - /* This test tests complex conjugate and passing/returning of complex parameter. */ diff --git a/gcc/testsuite/gcc.c-torture/execute/fprintf-1.c b/gcc/testsuite/gcc.c-torture/execute/fprintf-1.c index 15996ef22c51..f16252b1e8e6 100644 --- a/gcc/testsuite/gcc.c-torture/execute/fprintf-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/fprintf-1.c @@ -1,5 +1,3 @@ -/* { dg-skip-if "requires io" { freestanding } } */ - #include #include diff --git a/gcc/testsuite/gcc.c-torture/execute/fprintf-2.c b/gcc/testsuite/gcc.c-torture/execute/fprintf-2.c index 00517d1d1acf..edcbd1ed631f 100644 --- a/gcc/testsuite/gcc.c-torture/execute/fprintf-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/fprintf-2.c @@ -3,8 +3,7 @@ The calls can still be transformed into those of other functions. { dg-require-effective-target fileio } { dg-prune-output "warning: warning: \[^\n\r\]* possibly used unsafely" } - { dg-skip-if "requires io" { avr-*-* } } - { dg-skip-if "requires io" { freestanding } } */ + { dg-skip-if "requires io" { avr-*-* } } */ #include #include diff --git a/gcc/testsuite/gcc.c-torture/execute/fprintf-chk-1.c b/gcc/testsuite/gcc.c-torture/execute/fprintf-chk-1.c index 6f9e62c39e72..918ff8e5689a 100644 --- a/gcc/testsuite/gcc.c-torture/execute/fprintf-chk-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/fprintf-chk-1.c @@ -1,5 +1,3 @@ -/* { dg-skip-if "requires io" { freestanding } } */ - #include #include #include diff --git a/gcc/testsuite/gcc.c-torture/execute/gofast.c b/gcc/testsuite/gcc.c-torture/execute/gofast.c index 72774f16e740..f55ced22073b 100644 --- a/gcc/testsuite/gcc.c-torture/execute/gofast.c +++ b/gcc/testsuite/gcc.c-torture/execute/gofast.c @@ -1,5 +1,3 @@ -/* { dg-skip-if "requires io" { freestanding } } */ - /* Program to test gcc's usage of the gofast library. */ /* The main guiding themes are to make it trivial to add test cases over time diff --git a/gcc/testsuite/gcc.c-torture/execute/pr34456.c b/gcc/testsuite/gcc.c-torture/execute/pr34456.c index b4a845ec14b1..526c954e55ad 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr34456.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr34456.c @@ -1,5 +1,3 @@ -/* { dg-skip-if "requires qsort" { freestanding } } */ - #include int __attribute__ ((noinline)) debug (void) { return 1; } diff --git a/gcc/testsuite/gcc.c-torture/execute/printf-1.c b/gcc/testsuite/gcc.c-torture/execute/printf-1.c index 654e62766a85..77c4b87009eb 100644 --- a/gcc/testsuite/gcc.c-torture/execute/printf-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/printf-1.c @@ -1,4 +1,4 @@ -/* { dg-skip-if "requires io" { freestanding } } */ +/* { dg-xfail-run-if {unexpected PTX 'vprintf' return value} { nvptx-*-* } } */ #include #include diff --git a/gcc/testsuite/gcc.c-torture/execute/printf-2.c b/gcc/testsuite/gcc.c-torture/execute/printf-2.c index 2087bba84482..6e060773f83b 100644 --- a/gcc/testsuite/gcc.c-torture/execute/printf-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/printf-2.c @@ -4,8 +4,7 @@ { dg-require-effective-target unwrapped } { dg-require-effective-target fileio } { dg-prune-output "warning: warning: \[^\n\r\]* possibly used unsafely" } - { dg-skip-if "requires io" { avr-*-* } } - { dg-skip-if "requires io" { freestanding } } */ + { dg-skip-if "requires io" { avr-*-* } } */ #include #include diff --git a/gcc/testsuite/gcc.c-torture/execute/printf-chk-1.c b/gcc/testsuite/gcc.c-torture/execute/printf-chk-1.c index aab43062baef..a9fb5eea63df 100644 --- a/gcc/testsuite/gcc.c-torture/execute/printf-chk-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/printf-chk-1.c @@ -1,4 +1,4 @@ -/* { dg-skip-if "requires io" { freestanding } } */ +/* { dg-xfail-run-if {unexpected PTX 'vprintf' return value} { nvptx-*-* } } */ #include #include diff --git a/gcc/testsuite/gcc.c-torture/execute/user-printf.c b/gcc/testsuite/gcc.c-torture/execute/user-printf.c index bfee0760dd74..683aaf272589 100644 --- a/gcc/testsuite/gcc.c-torture/execute/user-printf.c +++ b/gcc/testsuite/gcc.c-torture/execute/user-printf.c @@ -4,8 +4,7 @@ { dg-require-effective-target unwrapped } { dg-require-effective-target fileio } { dg-prune-output "warning: warning: \[^\n\r\]* possibly used unsafely" } - { dg-skip-if "requires io" { avr-*-* } } - { dg-skip-if "requires io" { freestanding } } */ + { dg-skip-if "requires io" { avr-*-* } } */ #include #include diff --git a/gcc/testsuite/gcc.c-torture/execute/vfprintf-1.c b/gcc/testsuite/gcc.c-torture/execute/vfprintf-1.c index 0ac41dee3d6f..c00380425425 100644 --- a/gcc/testsuite/gcc.c-torture/execute/vfprintf-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/vfprintf-1.c @@ -1,5 +1,3 @@ -/* { dg-skip-if "requires io" { freestanding } } */ - #ifndef test #include #include diff --git a/gcc/testsuite/gcc.c-torture/execute/vfprintf-chk-1.c b/gcc/testsuite/gcc.c-torture/execute/vfprintf-chk-1.c index 401eaf4304a4..f8f964c7e9af 100644 --- a/gcc/testsuite/gcc.c-torture/execute/vfprintf-chk-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/vfprintf-chk-1.c @@ -1,5 +1,3 @@ -/* { dg-skip-if "requires io" { freestanding } } */ - #ifndef test #include #include diff --git a/gcc/testsuite/gcc.c-torture/execute/vprintf-1.c b/gcc/testsuite/gcc.c-torture/execute/vprintf-1.c index 259397ebda39..5c6208dd114d 100644 --- a/gcc/testsuite/gcc.c-torture/execute/vprintf-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/vprintf-1.c @@ -1,4 +1,4 @@ -/* { dg-skip-if "requires io" { freestanding } } */ +/* { dg-xfail-run-if {unexpected PTX 'vprintf' return value} { nvptx-*-* } } */ #ifndef test #include diff --git a/gcc/testsuite/gcc.c-torture/execute/vprintf-chk-1.c b/gcc/testsuite/gcc.c-torture/execute/vprintf-chk-1.c index 04ecc4df4d93..bb321ba6908c 100644 --- a/gcc/testsuite/gcc.c-torture/execute/vprintf-chk-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/vprintf-chk-1.c @@ -1,4 +1,4 @@ -/* { dg-skip-if "requires io" { freestanding } } */ +/* { dg-xfail-run-if {unexpected PTX 'vprintf' return value} { nvptx-*-* } } */ #ifndef test #include diff --git a/gcc/testsuite/gcc.dg/pr27531-1.c b/gcc/testsuite/gcc.dg/pr27531-1.c index b1ea748acb27..04672045b581 100644 --- a/gcc/testsuite/gcc.dg/pr27531-1.c +++ b/gcc/testsuite/gcc.dg/pr27531-1.c @@ -4,7 +4,6 @@ output to reference a label that had been eliminated. */ /* { dg-do link } */ /* { dg-options "-O2" } */ -/* { dg-skip-if "requires io" { freestanding } } */ typedef struct _IO_FILE FILE; char const *RCSname; diff --git a/gcc/testsuite/gcc.dg/pr44606.c b/gcc/testsuite/gcc.dg/pr44606.c index 13cc3efc1939..3929775535e0 100644 --- a/gcc/testsuite/gcc.dg/pr44606.c +++ b/gcc/testsuite/gcc.dg/pr44606.c @@ -1,7 +1,6 @@ /* PR target/44606 */ /* { dg-do run } */ /* { dg-options "-O2" } */ -/* { dg-skip-if "requires io" { freestanding } } */ #include diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 555d6dde505a..d2de761adb5d 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -830,16 +830,6 @@ proc check_profiling_available { test_what } { return $profiling_working } -# Check to see if a target is "freestanding". This is as per the definition -# in Section 4 of C99 standard. Effectively, it is a target which supports no -# extra headers or libraries other than what is considered essential. -proc check_effective_target_freestanding { } { - if { [istarget nvptx-*-*] } { - return 1 - } - return 0 -} - # Check to see that file I/O functions are available. proc check_effective_target_fileio { } { return [check_no_compiler_messages fileio_available executable { From patchwork Fri Dec 2 12:03:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 28894 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp799042wrr; Fri, 2 Dec 2022 04:07:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf7OUDiZo4lKEqPnMsgvLC9Mapm/Gxzo5NKs+cF/ktPYYaVoc0+WUPkQpVk5LCnzzQegU+ql X-Received: by 2002:aa7:cdd0:0:b0:46b:6bc0:8377 with SMTP id h16-20020aa7cdd0000000b0046b6bc08377mr16891337edw.304.1669982823249; Fri, 02 Dec 2022 04:07:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669982823; cv=none; d=google.com; s=arc-20160816; b=wljceFt905w9hTjk+8117DvgCqxuH4u++vnw9LyOlKSnXRjRDeyaXpqKc72scEFl1q o0WjOS1XxTSbDda35cInuPTSEaYy6bvgZk2GfsknwWG9AAmyAAr+rI8HNRKJV+xcl47l HhMG5Uhgv50plTQK6sXQozohhaTBA0szTBGhGx6AL8QbgjlOuLvN62H3VdsgHMRRV9vg fKGDS68nnsxPqEvzzq6LXKylMVz2sezmF+QBbyDfZkgmNytSODmL+++dG0ckDLOROnC/ ckrmKrfTRbJmI5YZUZQhbbWdaTnz0SkGPdiQw01mdUlTD0zKYO7DZzA7/zeL60jpYnyU Npmg== 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=th2TMUgTMVb/Yw3b1nDVmMdD1ZkKMNmF6cpyM+8Xha0=; b=Lc9+SPKLITSOHYimZSgiSipDK7jjhfkHfOTpsXQcEp8XBtWJ5ZML7bWqODvIPPPkCA NKOemA1BXkFSjDr1V0rY72UiyIC/SgyIkZnOJIel4PjTexS9MF3Kg5+JH3Moi30Ucujc hy7Nuos6RDEQK1U8FVfipmSXtLXplkLmqJoo2mtN8xbShDwKCUd5GxD15fBOd94tmueK SntMkUlW5+RxzylgnFomtQb7+V5NeZEH87tfz/iGLYlGkyg9aNR4jaQr2647oNbgvKLo oijtYXo+UHmT+FXq3aU5rHTth/85/UUOuyC8/e0p2gQX1a3cF/UHJr2hhC3zRaItkvSa 2rZw== ARC-Authentication-Results: i=1; mx.google.com; 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" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id w9-20020a1709064a0900b007bc9d241106si4567661eju.733.2022.12.02.04.07.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 04:07:03 -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; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E6BD83852C6C for ; Fri, 2 Dec 2022 12:04:38 +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 9F7D03857400 for ; Fri, 2 Dec 2022 12:03:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9F7D03857400 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="91487269" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 02 Dec 2022 04:03:36 -0800 IronPort-SDR: IX4eFb9cQshhlz3atqGxe50BABCRq9o/Mkhcw4eDY9GhO3B8AoXjhnZGrcQYJdxXf3Nhjyustx fRBq+ewn0ngmYgCAmYF5ncrAJzrMsLf/BmM8L55k5A8v715Pu19esV1d/KejcWkXwK3TWEuDnP I1LSst9VeUYeHWvJKjh5QxagWeOdWwVXM62lKpeND0kFOVdIeH0iQdHbTW0AgSIr3//4XOFIh+ RM2XkL4pU/ld7bRXmG7ZAYUS9M0oXe72QW5fWFi6wwwBtgSrInpu9sqr4GasZ366LG5jKAuVa1 u64= From: Thomas Schwinge To: , Subject: [PATCH 4/9] nvptx: Re-enable all variants of 'gcc.c-torture/execute/20020529-1.c' Date: Fri, 2 Dec 2022 13:03:10 +0100 Message-ID: <20221202120315.803120-5-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-07.mgc.mentorg.com (139.181.222.7) 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?1751103908741316875?= X-GMAIL-MSGID: =?utf-8?q?1751103908741316875?= Generally PASSes 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 ..., and execution with 'Driver Version: 361.93.02'. Only the '-O1' execution test FAILs (pre-existing; to be analyzed later): nvptx-run: error getting kernel result: an illegal memory access was encountered (CUDA_ERROR_ILLEGAL_ADDRESS, 700) gcc/testsuite/ * gcc.c-torture/execute/20020529-1.c: Re-enable all variants for nvptx. --- gcc/testsuite/gcc.c-torture/execute/20020529-1.c | 4 ---- 1 file changed, 4 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/execute/20020529-1.c b/gcc/testsuite/gcc.c-torture/execute/20020529-1.c index 160a716ba5bf..d1b93c76fdf4 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20020529-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/20020529-1.c @@ -12,10 +12,6 @@ forced a splitter through the output pattern "#", but there was no matching splitter. */ -/* The ptx assembler appears to clobber 'b' inside foo during the f1 call. - Reported to nvidia 2016-05-18. */ -/* { dg-skip-if "PTX assembler bug" { nvptx-*-* } { "-O0" } { "" } } */ - struct xx { int a; From patchwork Fri Dec 2 12:03:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 28896 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp799748wrr; Fri, 2 Dec 2022 04:08:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf7eObrKzKc3pDCbx4NWKlcWioT2a+P16rUKisV5wuJax0gsV1xSa72U3+oje0Ts75+0W/pK X-Received: by 2002:a17:906:a019:b0:7be:e774:5aad with SMTP id p25-20020a170906a01900b007bee7745aadmr10320147ejy.426.1669982885909; Fri, 02 Dec 2022 04:08:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669982885; cv=none; d=google.com; s=arc-20160816; b=p4ny18nWsHzOJnCN6Hem4V4hw2Dgnye9HwwIta2PzKEkkaOIX3JhuJXiiecDmuvhFr C3sKxbavjpt4Ofm0a/LPR9ezFzrqJE8+7BVzdDupbBFHdLln6LW3R/8Yl4UwafK13U6A ZvO9mR9/c6bloXzTRkqfMhqwMzN2xGJl+o1T0DVMx+fTsVuFHqog5p2PBXghkP/IxaCT B5Kzveyn9BryLbVDeTJ2n3abg7zoK8ih+OfsdqcfFvnGbtRUVEZTghNpr7WTGbTO8Lno rRaUE9NdRwXqWAdCUseBlf+HchGjTDKE2CxoH+rBfCoKpFhVG5ux8hACbYcLetU/td0F xZTw== 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=OScI5YZ/F/Qp2ClXgWED3UM74ps25eaxSFPtJ6e7D1E=; b=o1k1wujDUZ4kd4AZYs0BK1DjaJ21M9ESVG+DfXws1HlLeyrj8bJq9L+CjUXDgoOeFc 1XoY/BvM6ZGA3RgkZ4xrMU8e777T9xBY8qxAyiqJdKNJF88WNxXe/BUH1YsDz3fUykal zYGn6hnn2iJXGHWPMBxmpptALCjIeKPgJBFGLEPcY+czX3QsaS53lLw6EZyvytZXRb5i hivhYhlYcpk/YYkUcCmr6MawYPyibF6rRb+esld8dFQ835YIzWwG4J3ZjcA68tldLLLb NrF08bD8QMQcVMQSSRzTqjYNKMe2Y7yi1yKo9CjeG7DlFhlqAds0RdJnaNcReRdFtuIp dqhg== 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id j16-20020a05640211d000b00460faf7d2a3si6611263edw.277.2022.12.02.04.08.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 04:08:05 -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 A60FE3888C65 for ; Fri, 2 Dec 2022 12:05:08 +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 03292385B1A4 for ; Fri, 2 Dec 2022 12:03:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 03292385B1A4 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="91487271" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 02 Dec 2022 04:03:38 -0800 IronPort-SDR: kNzyP8q5MS0ZPh+wzKipHq2HEDuqXw1sXkyFZmiMtXNiU5gAdSS2slrzcbH4djIA6KoO/7HffP Tc5X1S2n67vwNg7urVyak1KTfYEZ1dXFPJQVSr3J8ujBjv6B8VqE2Nxs+kT3umxkR/9hi5Yg17 w3biXg5GTe/939Em+L5yqA/6Q4ZPzk4fmhffcIbRD5medmv0fHpG16LWp4Pqr2aMMrzFQbF5ZB wSqRCWYBraG06bPFQzBvSKpEMyabV4MssJ/d3qlEFctoLMUoe1XURoY+pwpJ9D/Fuco1a6K5uh Hk0= From: Thomas Schwinge To: , Subject: [PATCH 5/9] nvptx: Re-enable 'gcc.dg/special/weak-2.c' Date: Fri, 2 Dec 2022 13:03:11 +0100 Message-ID: <20221202120315.803120-6-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-12.mgc.mentorg.com (139.181.222.12) 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?1751103974969413526?= X-GMAIL-MSGID: =?utf-8?q?1751103974969413526?= PASSes 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 ..., and execution with 'Driver Version: 361.93.02'. gcc/testsuite/ * gcc.dg/special/weak-2.c: Re-enable for nvptx. --- gcc/testsuite/gcc.dg/special/weak-2.c | 4 ---- 1 file changed, 4 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.dg/special/weak-2.c b/gcc/testsuite/gcc.dg/special/weak-2.c index b8133e2d7d95..b93a8ef9a529 100644 --- a/gcc/testsuite/gcc.dg/special/weak-2.c +++ b/gcc/testsuite/gcc.dg/special/weak-2.c @@ -2,10 +2,6 @@ /* { dg-require-weak "" } */ /* { dg-additional-sources "weak-2a.c weak-2b.c" } */ -/* NVPTX's implementation of weak is broken when a strong symbol is in - a later object file than the weak definition. */ -/* { dg-skip-if "" { "nvptx-*-*" } } */ - #include extern int foo(void); From patchwork Fri Dec 2 12:03:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 28898 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp800192wrr; Fri, 2 Dec 2022 04:08:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf4pBZUVdVHpea7FYsbCF1whDhZaniFnXxdCEaprv+rz5n3S1Q4JokWQkC9yshGH0Jf7f1g3 X-Received: by 2002:aa7:c9d1:0:b0:461:4ab3:97ca with SMTP id i17-20020aa7c9d1000000b004614ab397camr48157054edt.211.1669982930437; Fri, 02 Dec 2022 04:08:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669982930; cv=none; d=google.com; s=arc-20160816; b=UekVQ47KzWU5kd43RHtO/OsvA4gEBIfYy89VTrZq5XQrm915A4LsPdYAzxCImCxKvO HG104CzKSvOTWeBVjWTp09yen2hsFX8+L8YRXnOOTiIoHQutYJClCpgS9YEHIGjnwIeu 9vpXpYmF74AXBCbDMuinN0SNBI7EmEvyQs0l7BIoDTaGeKu09a73TaHv/JmlS27tmAH1 YVl7OeEMku2DUGUjJaFTvJdu/7+rE4Si+FZedsxM2BU5hBkeRYRRxX8e8yMzG6GIH8oh iW01PmZ3yKLW7BM19D6zMvqvlDQ5nrEwqZcgPC7jLSSJZxfSF4a/pZeWlEDEkuysOz/F 8TnA== 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=bvHvH+hOfLEmEuL7yLMxOziULBZHViYfYcEDDnzpiNg=; b=ve563yV98RZoyT95hLt1SBqWwRblQpV8vgk3hQI7JTM26AOTukwtVVGQvZreaHj2sU yzzSdnXxFiHGihEQuTXq3dme+3LN023l18qsqB7jBNsyNj224OQIDWAEI4968scTpMnD 6ksbIoe7txmJW2xO6KmqFhRQksTvaC725Qnsy+7cghtOhu97wxMTTP8n1pK1bDrGAMST mDcoIq+KobiMW6yqv+mVZvPLY9BJKbXDrk7b3nY2xJ4vXDrF2wOy5AR1GOf1FY1dqD4X 56otqqqB3FJJdkV4aZ4pneV0uea1Cut1NZhCO8eHJZsd+nKuasiOT+VDVtAlzYrnNpZ/ u80w== ARC-Authentication-Results: i=1; mx.google.com; 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" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id gn6-20020a1709070d0600b0078239e3f846si6677310ejc.1.2022.12.02.04.08.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 04:08:50 -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; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4943A3840083 for ; Fri, 2 Dec 2022 12:05:38 +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 B8F27385B1BD for ; Fri, 2 Dec 2022 12:03:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B8F27385B1BD 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="91487277" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 02 Dec 2022 04:03:42 -0800 IronPort-SDR: p9Zeshs1nOyFtIakQn8KDCtNmbd9t7PB28yddrP2ETS41ZuKVaK//KAx2DjGJlXTYk9YJQpKe/ x8DzNBcfjiaC4WZaUwaE9oq+Y2MzYiJJPD8kJw64y2sQJ2fXqaLz9tApsoOfMU+hS2LxjBpHtc 2WUE48RkQEKjiCbwpe5fKim1FJl3/R2lO0CAwnl5VhmcyliEsGxqKgXo/oy1bvCuEYqLjRXRDU J3NBGKnQQ+Vukajyj6mkd8wu2lXuESdFPiL0kMb7nrZn89TBnkvnV3kDZLRtPdQY+xwi0iZ8An G2I= From: Thomas Schwinge To: , Subject: [PATCH 6/9] nvptx: Re-enable all variants of 'c-c++-common/torture/complex-sign-mixed-add.c', 'c-c++-common/torture/complex-sign-mixed-sub.c' Date: Fri, 2 Dec 2022 13:03:12 +0100 Message-ID: <20221202120315.803120-7-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-13.mgc.mentorg.com (139.181.222.13) 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?1751104020961234873?= X-GMAIL-MSGID: =?utf-8?q?1751104020961234873?= 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 ..., and execution with 'Driver Version: 361.93.02'. gcc/testsuite/ * c-c++-common/torture/complex-sign-mixed-add.c: Re-enable all variants for nvptx. * c-c++-common/torture/complex-sign-mixed-sub.c: Likewise. --- gcc/testsuite/c-c++-common/torture/complex-sign-mixed-add.c | 1 - gcc/testsuite/c-c++-common/torture/complex-sign-mixed-sub.c | 1 - 2 files changed, 2 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/c-c++-common/torture/complex-sign-mixed-add.c b/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-add.c index a209161e1578..d1e20912ae14 100644 --- a/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-add.c +++ b/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-add.c @@ -2,7 +2,6 @@ addition. */ /* { dg-do run } */ /* { dg-options "-std=gnu99" { target c } } */ -/* { dg-skip-if "ptx can elide zero additions" { "nvptx-*-*" } { "-O0" } { "" } } */ #include "complex-sign.h" diff --git a/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-sub.c b/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-sub.c index 02ab4db247cb..739500d2f8be 100644 --- a/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-sub.c +++ b/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-sub.c @@ -2,7 +2,6 @@ subtraction. */ /* { dg-do run } */ /* { dg-options "-std=gnu99" { target c } } */ -/* { dg-skip-if "ptx can elide zero additions" { "nvptx-*-*" } { "-O0" } { "" } } */ #include "complex-sign.h" From patchwork Fri Dec 2 12:03:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 28892 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp798288wrr; Fri, 2 Dec 2022 04:05:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf5RpoXa1tT/tQuZSeAH0A3XtJSHKL18CrY0hYD3xt89ju7BQF5mubhVgjpjS5cDnBqGvLkU X-Received: by 2002:a17:906:7215:b0:78d:a7f0:e232 with SMTP id m21-20020a170906721500b0078da7f0e232mr59540585ejk.9.1669982750171; Fri, 02 Dec 2022 04:05:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669982750; cv=none; d=google.com; s=arc-20160816; b=coc1OVgecU0e0YVH++nuXbXg9GDmbFh9nP9JOicEAnOMlBrvz6MSDR5yK5nrNQy5zL 33U59m6rcNzTV3n7W9CVP2Th3hi3WAc4QHGvyY2wodhsPdFkfQa+lrLkUr//MB9ebh8L V91PLZCtDvLjr9f4j3mc8i7EgYCViDcjj7DClDTc/W/o9yHD/nXaCod6/BL3t10TY0/d Qv0aw0q16hh48FNAJQpb7kaq2H0LIiKwaXhPJuY5wgi/PJLvl+Y0c3r0N0vQPWcyOMsH EFFksVK8kfWq2dN4zZo3dKW52lg7SwCaz5F5i3Nhxa3YkfGpKalUUQJwPq3VIiZFSLZo BVJw== 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=k8kZixHoNnWxyEuArNxFr/qpi4tyE8UfVmGt7hgSIVo=; b=OVh6OXRxQHge5AnH3aZwRoxd0eF66eyAUMQOjwI+D+z5sLJrr9EhVHwfl3YWpW2BIo kV8jH/y8UdrCOn2ddnrYKOtgICYr4MzYNGYUddIY7KHoj/UlH2X7pJD0+/fm3gKvdZjH oEoIMUUUW4OXeskQ6shDEUGdhXgfZWn6gsdr/OsXHsD4Oyt9fldgVdXDJQrGNVYb681a UuhFqhSt1SH13LBF8dT7fr5KM6Cfk95DuQrxnPIDyQmnHDbabT5Up25tpvoDBFtV+GbW vNvOiZeub3As9bCwgM7/7J10aphCzelFbee8QR0d3uBOz7IQez3ayP8DVW6Nw5wVkqLE gXDQ== 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 u14-20020aa7d88e000000b0046b4fc516b7si5879065edq.128.2022.12.02.04.05.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 04:05:50 -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 C4E20383234A for ; Fri, 2 Dec 2022 12:04:11 +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 24286385B19F for ; Fri, 2 Dec 2022 12:03:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 24286385B19F 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="91487279" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 02 Dec 2022 04:03:44 -0800 IronPort-SDR: MWT9UITbZJUAGJ7Qik+5O7CAAMBrYWA8NJbX1MZJPyXqNuJFzWsCnhgTodltkqJTMydIIjyILG b6+LRMadC/eXFXryCZS1Ji8a4jFyX5rUBJLOjr5XT/sGd5JL086L/C0luXL0R4Hg89zhmKBj1L LV+wyorHQtUsUfH82RRmJJlTYC0W5yo+cSL2GNTzxQ58dooYL2y6ZKN1CKyydfp7GBRdErPeb7 k5NRPQvkn8lSoEP0trsC6y1NRLaG6IyTqWLNlvo8L2hTrlqTEzkZBvyiRJhEKwObDXa6f/cRTf nPM= From: Thomas Schwinge To: , Subject: [PATCH 7/9] nvptx: Re-enable 'gcc.dg/torture/c99-contract-1.c' Date: Fri, 2 Dec 2022 13:03:13 +0100 Message-ID: <20221202120315.803120-8-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-15.mgc.mentorg.com (139.181.222.15) 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?1751103832246064645?= X-GMAIL-MSGID: =?utf-8?q?1751103832246064645?= Generally PASSes 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 ..., and execution with 'Driver Version: 361.93.02', at least for the '-O0' execution test. Optimized execution tests XFAILed, to be analyzed later. gcc/testsuite/ * gcc.dg/torture/c99-contract-1.c: Re-enable for nvptx. --- gcc/testsuite/gcc.dg/torture/c99-contract-1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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.dg/torture/c99-contract-1.c b/gcc/testsuite/gcc.dg/torture/c99-contract-1.c index 392666f3dd58..749005e797c5 100644 --- a/gcc/testsuite/gcc.dg/torture/c99-contract-1.c +++ b/gcc/testsuite/gcc.dg/torture/c99-contract-1.c @@ -2,7 +2,7 @@ expressions. */ /* { dg-do run } */ /* { dg-options "-std=c99 -pedantic-errors" } */ -/* { dg-skip-if "ptx only loosely follows IEEE" { "nvptx-*-*" } } */ +/* { dg-xfail-run-if {only loosely follows IEEE} { nvptx-*-* && __OPTIMIZE__ } } */ extern void abort (void); extern void exit (int); From patchwork Fri Dec 2 12:03:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 28897 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp799813wrr; Fri, 2 Dec 2022 04:08:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf5S5j8B3bBxXc3dOBmZgdYy1zRoN+GNecG3TslM2lhcfc0E9XFGcdJozIpa+kJxF87VswS9 X-Received: by 2002:aa7:c9d0:0:b0:458:ed79:ed5 with SMTP id i16-20020aa7c9d0000000b00458ed790ed5mr48389494edt.374.1669982892301; Fri, 02 Dec 2022 04:08:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669982892; cv=none; d=google.com; s=arc-20160816; b=dYGiG8dHcjKaz7pm5TzGA6LRlX217ffLkxPeoGgA4m4y36EmYHMnO5ToNcOzPWHe4G NpgymOCSW6PAfdDJEpRzlWT39zyoOXS7gYQL3Xj1E/zyhH4iW00eCzfkxXvUa89MdR4m aT0FhQDIJgVYEu7bt39VkuSk3cyZUePGHDpOh3BERsYFNN6sK0wNSqh8OIWAoJSOLfN3 VnNhZEnlC0sdksoh6U/F1lM5DQ1N5AS1ZPECLeN3ROTLAQI2weKIvjzoDEJvpbLoL5aD cpnzv8xjOPu7ySnq/pOVPG/IMnc0uCYnZjYgHn/yC/m4Q8g/zlgYVuUHn7HwdcAnOkGK FSyg== 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=0Du9zJRzBAWerOvrp497qir3t0CliBdQ3MARb3nipKk=; b=HqeQlF1W2y7AIH0tpGQoIzLHinrA7H5/A8FU6cR1ErX/5EyYK6lYA6lzALRIErkTGc u7pDXAsk458q2iGDU+1GuFc9daoxcCRD2D/moC0ILPJgpHYN+e+PrKVRUsPA9hbpUApQ dxgoQbpLZxyG3LUOKeqq2NCav+UkhVeMd8vBkJVQMmqQm+wGVe92srpI908hbvaH10ht AhqQc9h5dRShC4+8jSHiKJsMNXLqlA3kU82mnjpWZY3nHXAqqBjqQm1NWyJ/fyYlxQFv Ny2tCflJtX1tmhGzxHr0YwxVkIw2DCS8KUSie8F8ExATmepZ8YPSkKh89Gk97XKp7t+i CyZA== ARC-Authentication-Results: i=1; mx.google.com; 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" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id dd20-20020a1709069b9400b007c0cb833639si774459ejc.933.2022.12.02.04.08.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 04:08:12 -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; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AD74C3887F79 for ; Fri, 2 Dec 2022 12:05:11 +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 DC8F638582B7 for ; Fri, 2 Dec 2022 12:03:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DC8F638582B7 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="91487286" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 02 Dec 2022 04:03:48 -0800 IronPort-SDR: 1QEyvZ/ejSSRF4KzQYohfvLv0m02q1H0Jvu1+UCQ7TbsAOS9pK0ynoh/Ztbq6BICIlpXelRDDZ 9zqfNSOKvH/jftXsVP+xXRi+AavtRtsQC4+zpFM+WA/mTZRspDgVc2vZKRdWFE6rWTkLK6rQk8 UzPDoyuJvE/rDdTPoNsShVFiC2l6UoGIeg4s/2qUI2/adlZm+xIYy2eUvzb88Jz9LZ9S840ZRj WHTQcs1p2YKX1S/Wy7B3xpZWrX+4w5DSmJQID2gze63w9ufIqIlKO+xOym8Tl/c1leacL6YUQD 2/M= From: Thomas Schwinge To: , Subject: [PATCH 8/9] nvptx: Re-enable "Stack alignment causes use of alloca" test cases Date: Fri, 2 Dec 2022 13:03:14 +0100 Message-ID: <20221202120315.803120-9-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-08.mgc.mentorg.com (139.181.222.8) 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?1751103981154157319?= X-GMAIL-MSGID: =?utf-8?q?1751103981154157319?= 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 ..., and execution with 'Driver Version: 361.93.02'. The exceptions are 'gcc.dg/torture/stackalign/pr16660-2.c', 'gcc.dg/torture/stackalign/pr16660-3.c', where a few variants get XFAILed due to: nvptx-as: ptxas terminated with signal 11 [Segmentation fault], core dumped gcc/testsuite/ * gcc.dg/torture/stackalign/global-1.c: Re-enable for nvptx. * gcc.dg/torture/stackalign/inline-1.c: Likewise. * gcc.dg/torture/stackalign/nested-1.c: Likewise. * gcc.dg/torture/stackalign/nested-2.c: Likewise. * gcc.dg/torture/stackalign/nested-4.c: Likewise. * gcc.dg/torture/stackalign/pr16660-1.c: Likewise. * gcc.dg/torture/stackalign/pr16660-2.c: Likewise. * gcc.dg/torture/stackalign/pr16660-3.c: Likewise. * gcc.dg/torture/stackalign/ret-struct-1.c: Likewise. * gcc.dg/torture/stackalign/struct-1.c: Likewise. --- gcc/testsuite/gcc.dg/torture/stackalign/global-1.c | 1 - gcc/testsuite/gcc.dg/torture/stackalign/inline-1.c | 1 - gcc/testsuite/gcc.dg/torture/stackalign/nested-1.c | 1 - gcc/testsuite/gcc.dg/torture/stackalign/nested-2.c | 1 - gcc/testsuite/gcc.dg/torture/stackalign/nested-4.c | 2 +- gcc/testsuite/gcc.dg/torture/stackalign/pr16660-1.c | 1 - gcc/testsuite/gcc.dg/torture/stackalign/pr16660-2.c | 2 +- gcc/testsuite/gcc.dg/torture/stackalign/pr16660-3.c | 2 +- gcc/testsuite/gcc.dg/torture/stackalign/ret-struct-1.c | 1 - gcc/testsuite/gcc.dg/torture/stackalign/struct-1.c | 1 - 10 files changed, 3 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.dg/torture/stackalign/global-1.c b/gcc/testsuite/gcc.dg/torture/stackalign/global-1.c index 66bec64a0f58..a7cbfa74d165 100644 --- a/gcc/testsuite/gcc.dg/torture/stackalign/global-1.c +++ b/gcc/testsuite/gcc.dg/torture/stackalign/global-1.c @@ -1,6 +1,5 @@ /* { dg-do run } */ /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */ -/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */ #include "check.h" diff --git a/gcc/testsuite/gcc.dg/torture/stackalign/inline-1.c b/gcc/testsuite/gcc.dg/torture/stackalign/inline-1.c index 912581e9ca84..6aed4398cb19 100644 --- a/gcc/testsuite/gcc.dg/torture/stackalign/inline-1.c +++ b/gcc/testsuite/gcc.dg/torture/stackalign/inline-1.c @@ -1,6 +1,5 @@ /* { dg-do run } */ /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */ -/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */ #include "check.h" diff --git a/gcc/testsuite/gcc.dg/torture/stackalign/nested-1.c b/gcc/testsuite/gcc.dg/torture/stackalign/nested-1.c index ae9047e783d9..25343757c9ce 100644 --- a/gcc/testsuite/gcc.dg/torture/stackalign/nested-1.c +++ b/gcc/testsuite/gcc.dg/torture/stackalign/nested-1.c @@ -1,6 +1,5 @@ /* { dg-do run } */ /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */ -/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */ #include "check.h" diff --git a/gcc/testsuite/gcc.dg/torture/stackalign/nested-2.c b/gcc/testsuite/gcc.dg/torture/stackalign/nested-2.c index d083d6695b11..397a34fb661f 100644 --- a/gcc/testsuite/gcc.dg/torture/stackalign/nested-2.c +++ b/gcc/testsuite/gcc.dg/torture/stackalign/nested-2.c @@ -1,6 +1,5 @@ /* { dg-do run } */ /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */ -/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */ #include "check.h" diff --git a/gcc/testsuite/gcc.dg/torture/stackalign/nested-4.c b/gcc/testsuite/gcc.dg/torture/stackalign/nested-4.c index a46104b9df0a..4d18ba9ad397 100644 --- a/gcc/testsuite/gcc.dg/torture/stackalign/nested-4.c +++ b/gcc/testsuite/gcc.dg/torture/stackalign/nested-4.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */ -/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */ +/* { dg-require-effective-target nonlocal_goto } */ #include "check.h" diff --git a/gcc/testsuite/gcc.dg/torture/stackalign/pr16660-1.c b/gcc/testsuite/gcc.dg/torture/stackalign/pr16660-1.c index 459b3df26964..3818e5c32cd6 100644 --- a/gcc/testsuite/gcc.dg/torture/stackalign/pr16660-1.c +++ b/gcc/testsuite/gcc.dg/torture/stackalign/pr16660-1.c @@ -1,6 +1,5 @@ /* { dg-do run } */ /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */ -/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */ #include "check.h" diff --git a/gcc/testsuite/gcc.dg/torture/stackalign/pr16660-2.c b/gcc/testsuite/gcc.dg/torture/stackalign/pr16660-2.c index 2aaff4001091..db0763bbd33d 100644 --- a/gcc/testsuite/gcc.dg/torture/stackalign/pr16660-2.c +++ b/gcc/testsuite/gcc.dg/torture/stackalign/pr16660-2.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */ +/* { dg-xfail-if {ptxas SIGSEGV} { nvptx-*-* } { {-O0} {-fpic} } } */ #include "check.h" diff --git a/gcc/testsuite/gcc.dg/torture/stackalign/pr16660-3.c b/gcc/testsuite/gcc.dg/torture/stackalign/pr16660-3.c index ceb626682f89..4a4989b3440c 100644 --- a/gcc/testsuite/gcc.dg/torture/stackalign/pr16660-3.c +++ b/gcc/testsuite/gcc.dg/torture/stackalign/pr16660-3.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */ +/* { dg-xfail-if {ptxas SIGSEGV} { nvptx-*-* } { {-O0} {-fpic} } } */ #include "check.h" diff --git a/gcc/testsuite/gcc.dg/torture/stackalign/ret-struct-1.c b/gcc/testsuite/gcc.dg/torture/stackalign/ret-struct-1.c index ff0488dc956c..e56def4e7c3a 100644 --- a/gcc/testsuite/gcc.dg/torture/stackalign/ret-struct-1.c +++ b/gcc/testsuite/gcc.dg/torture/stackalign/ret-struct-1.c @@ -1,6 +1,5 @@ /* { dg-do run } */ /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */ -/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */ #include "check.h" diff --git a/gcc/testsuite/gcc.dg/torture/stackalign/struct-1.c b/gcc/testsuite/gcc.dg/torture/stackalign/struct-1.c index 4e9796f7826f..12262ebbe692 100644 --- a/gcc/testsuite/gcc.dg/torture/stackalign/struct-1.c +++ b/gcc/testsuite/gcc.dg/torture/stackalign/struct-1.c @@ -1,6 +1,5 @@ /* { dg-do run } */ /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */ -/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */ #include "check.h" From patchwork Fri Dec 2 12:03:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 28899 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp800493wrr; Fri, 2 Dec 2022 04:09:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf73yF5out47nzLvwDwYuodvIbJQzE/9iZqVFWt9iU12FZX4z1FVzd9GNHpe1yTHOQH099vb X-Received: by 2002:a17:906:2604:b0:78a:d0a4:176 with SMTP id h4-20020a170906260400b0078ad0a40176mr61408584ejc.720.1669982963105; Fri, 02 Dec 2022 04:09:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669982963; cv=none; d=google.com; s=arc-20160816; b=JvCyEmJnceX9CMtUyAjlmYwiwjSw5PrXmD+Ua0t+cId31e7gmZ83KHbEYfGiKqUj1+ KLPAk44HVDsEiHs5emkFYjfTV+/ft5f0/3duLHceHCmb2SXYMjgyTTlTRIi3kfJfoGZ5 Pl0jYS+gUQH2KjJmnmgs8oGYW6S9hTwP0Ef+HwenEcqrW/Fy4h988pg52atgVs7v9VzP tZfQnxFbexWT7muVlvOYR7pomT97qbnRdoRBVTJQTJrkt1jxv2Y/V3jbjEmGbtYiDEE3 Q0xzsswLizn4BjUhRg43SsN50lT8cGHEUGVUUHuV95WonJsZ4PU84KHVPO8x6u7qZKZc Ikjg== 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=fsann8Bs+rXBd7/Axsg2iJa6eFm+fFn7TI6BPJwktaY=; b=oIc0jWiXKTIP72h7o/r41H4WzUiAKpSWuv/taTzRDqaLsRCuKvMCBQR8ltDspP2mA3 36qjOmtBQoQsVS9GXBm5A+1JbCXvKcukuueZ9Y5WpL/EYft1dDgfqo6oOhApVjxJCLMe OqSa5+49nrNl8Vuoz0H+c00iaX938wN1dmaU7VwbUDjtPhCPSGdqzjgyagwrPbYycOuX ZjwT51yPqoCgPTBpi/vYhjpX3Wqm+rA1243Lon6dmPadpTwcIIRAQbggfh4PIU1t6vS6 //fSB3K98N27i67N6sYRHZyEiW768sTyYKzXPq1kQE/N7J0XJrmIFUlax8jJQiac/csX iVCA== 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 y2-20020a056402440200b004692b547022si6546835eda.526.2022.12.02.04.09.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 04:09:23 -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 8D5CE385B53F for ; Fri, 2 Dec 2022 12:06:07 +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 5D6A33853D74 for ; Fri, 2 Dec 2022 12:03:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5D6A33853D74 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="91487290" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 02 Dec 2022 04:03:51 -0800 IronPort-SDR: dhHTMt5t/uhLdcFN1p/jPCw0kQSB53dPussmjqxKCLKKF8X4sZI3oaTu7ivCEunK/mHy9Th8KS d7NZMH/sTs9lStFZD0pQ+MIeJF8svtEo7nchH/zUHGdZ3WXQy8ldaSETSDs1SRlx/u7F0p9lg4 3I7aLUrcPZnHpwlstP9JywwUf4xY+Gaz89TW9dw9e+eASHUlz34bkFFk1OU5CyJdYEdzY++1XH EgP51VN4AUPo+CL/ztRvMEEcBwKGvXKPMg2uxH2bbSvgTVSoMfBPo0yW2x8cqQECDmMSO7iu27 2JA= From: Thomas Schwinge To: , Subject: [PATCH 9/9] nvptx: Re-enable 'gcc.misc-tests/options.exp' Date: Fri, 2 Dec 2022 13:03:15 +0100 Message-ID: <20221202120315.803120-10-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-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.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?1751104055194948740?= X-GMAIL-MSGID: =?utf-8?q?1751104055194948740?= ..., just conditionalize its profiling test (as done elsewhere). gcc/testsuite/ * gcc.misc-tests/options.exp: Re-enable for nvptx. --- gcc/testsuite/gcc.misc-tests/options.exp | 10 +++------- 1 file changed, 3 insertions(+), 7 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.misc-tests/options.exp b/gcc/testsuite/gcc.misc-tests/options.exp index c939aef1f4bc..a055786ea0c1 100644 --- a/gcc/testsuite/gcc.misc-tests/options.exp +++ b/gcc/testsuite/gcc.misc-tests/options.exp @@ -21,12 +21,6 @@ load_lib gcc-defs.exp -# disable for non-profile targets explitly, rather than -# rely on check-effective target. We're explicitly trying to check -# profiling works, and if it doesn't check-effective-target will -# simply skip the tests, rather than have this test shout at us. -if [ istarget "nvptx-*-*" ] { return 0 } - # These tests don't run runtest_file_p consistently if it # doesn't return the same values, so disable parallelization # of this *.exp file. The first parallel runtest to reach @@ -73,7 +67,9 @@ proc check_for_all_options {language gcc_options compiler_pattern as_pattern ld_ pass $test } -check_for_all_options c {--coverage} {-fprofile-arcs -ftest-coverage} {} {-lgcov} +if { [check_profiling_available "-fprofile-arcs"] } { + check_for_all_options c {--coverage} {-fprofile-arcs -ftest-coverage} {} {-lgcov} +} proc get_dump_flags {} { set res [list]