From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22989 invoked by alias); 14 Jun 2011 09:21:03 -0000 Received: (qmail 22974 invoked by uid 22791); 14 Jun 2011 09:21:02 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mo-p00-ob.rzone.de (HELO mo-p00-ob.rzone.de) (81.169.146.162) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 14 Jun 2011 09:20:47 +0000 X-RZG-AUTH: :LXoWVUeid/7A29J/hMvvT2k715jHQaJercGObUOFkj18odoYNahU4Q== X-RZG-CLASS-ID: mo00 Received: from [192.168.0.22] (business-188-111-022-002.static.arcor-ip.net [188.111.22.2]) by post.strato.de (klopstock mo49) (RZmta 25.18) with ESMTPA id Y00485n5E7q0wd ; Tue, 14 Jun 2011 11:20:39 +0200 (MEST) Message-ID: <4DF727E4.2010906@gjlay.de> Date: Tue, 14 Jun 2011 09:38:00 -0000 From: Georg-Johann Lay User-Agent: Thunderbird 2.0.0.24 (X11/20100302) MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org CC: Jakub Jelinek , Mike Stump , Kaz Kojima , Rainer Orth Subject: Re: [testsuite]: Skip tests for targets with int < 32 bits References: <4DF0F48C.2050308@gjlay.de> <691C71AE-DCA3-4061-8904-C6F970618B17@comcast.net> <4DF6548C.2030207@gjlay.de> <20110613182331.GV17079@tyan-ft48-01.lab.bos.redhat.com> In-Reply-To: <20110613182331.GV17079@tyan-ft48-01.lab.bos.redhat.com> Content-Type: multipart/mixed; boundary="------------060401090905040207030307" X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg01019.txt.bz2 This is a multi-part message in MIME format. --------------060401090905040207030307 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 1011 Jakub Jelinek schrieb: > On Mon, Jun 13, 2011 at 08:18:52PM +0200, Georg-Johann Lay wrote: >> For exammple, I added this line to, e.g. >> * gcc.c-torture/execute/cmpsi-2.c >> * gcc.c-torture/execute/pr45262.c >> in trunk r172757 >> http://gcc.gnu.org/viewcvs?view=revision&revision=172757 > > That was a mistake. > > gcc.c-torture/execute/ doesn't use the dg framework, you need > to instead add cmpsi-2.x resp. pr45262.x file alongside with > the testcase. Look at other *.x files there for details on how they look > like. > > Jakub Thanks for your help Mike and Jakub. Updated patch and testrun looks cleaner now. Johann -- testsuite/ * gcc.c-torture/execute/cmpsi-2.c: Undo 172757. * gcc.c-torture/execute/cmpsi-2.x: New file. * gcc.c-torture/execute/pr45262.c: Undo 172757. * gcc.c-torture/execute/pr45262.x: New file. * gcc.c-torture/compile/pr46534.c: Skip for AVR. * gcc.c-torture/compile/pr49029.c: Add dg-require-effective-target int32plus * gcc.c-torture/compile/pr49163.c: Ditto. --------------060401090905040207030307 Content-Type: text/x-patch; name="testsuite-int32plus-2.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="testsuite-int32plus-2.diff" Content-length: 2509 Index: gcc.c-torture/execute/cmpsi-2.c =================================================================== --- gcc.c-torture/execute/cmpsi-2.c (Revision 174701) +++ gcc.c-torture/execute/cmpsi-2.c (Arbeitskopie) @@ -1,5 +1,3 @@ -/* { dg-require-effective-target int32plus } */ - #define F 140 #define T 13 Index: gcc.c-torture/execute/cmpsi-2.x =================================================================== --- gcc.c-torture/execute/cmpsi-2.x (Revision 0) +++ gcc.c-torture/execute/cmpsi-2.x (Revision 0) @@ -0,0 +1,7 @@ +load_lib target-supports.exp + +if { [check_effective_target_int16] } { + return 1 +} + +return 0; Index: gcc.c-torture/execute/pr45262.c =================================================================== --- gcc.c-torture/execute/pr45262.c (Revision 174701) +++ gcc.c-torture/execute/pr45262.c (Arbeitskopie) @@ -1,5 +1,4 @@ /* PR middle-end/45262 */ -/* { dg-require-effective-target int32plus } */ extern void abort (void); Index: gcc.c-torture/execute/pr45262.x =================================================================== --- gcc.c-torture/execute/pr45262.x (Revision 0) +++ gcc.c-torture/execute/pr45262.x (Revision 0) @@ -0,0 +1,7 @@ +load_lib target-supports.exp + +if { [check_effective_target_int16] } { + return 1 +} + +return 0; Index: gcc.c-torture/compile/pr46534.c =================================================================== --- gcc.c-torture/compile/pr46534.c (Revision 174701) +++ gcc.c-torture/compile/pr46534.c (Arbeitskopie) @@ -1,4 +1,4 @@ -/* { dg-skip-if "too big" { pdp11-*-* } { "*" } { "" } } */ +/* { dg-skip-if "too big" { avr-*-* pdp11-*-* } { "*" } { "" } } */ /* PR middle-end/46534 */ extern int printf (const char *, ...); Index: gcc.c-torture/compile/pr49029.c =================================================================== --- gcc.c-torture/compile/pr49029.c (Revision 174701) +++ gcc.c-torture/compile/pr49029.c (Arbeitskopie) @@ -1,4 +1,5 @@ /* PR middle-end/49029 */ +/* { dg-require-effective-target int32plus } */ struct S { volatile unsigned f : 11; signed g : 30; } __attribute__((packed)); struct T { volatile struct S h; } __attribute__((packed)) a; void foo (int); Index: gcc.c-torture/compile/pr49163.c =================================================================== --- gcc.c-torture/compile/pr49163.c (Revision 174701) +++ gcc.c-torture/compile/pr49163.c (Arbeitskopie) @@ -1,4 +1,5 @@ /* PR target/49163 */ +/* { dg-require-effective-target int32plus } */ struct S1 { unsigned f0:18; --------------060401090905040207030307--