From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5456 invoked by alias); 18 Feb 2014 16:43:26 -0000 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 Received: (qmail 5442 invoked by uid 89); 18 Feb 2014 16:43:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 18 Feb 2014 16:43:24 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s1IGhMXB002037 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 18 Feb 2014 11:43:22 -0500 Received: from [10.36.7.35] (vpn1-7-35.ams2.redhat.com [10.36.7.35]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s1IGhJvG027338 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 18 Feb 2014 11:43:21 -0500 Message-ID: <53038CBB.4080808@redhat.com> Date: Tue, 18 Feb 2014 16:43:00 -0000 From: nick clifton User-Agent: Mozilla/5.0 (X11; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0 SeaMonkey/2.23 MIME-Version: 1.0 To: Richard Biener , gcc-patches@gcc.gnu.org Subject: Re: RFA: Fix some gcc tests for 16-bit targets References: <8738jhvfgj.fsf@redhat.com> <0d908cf4-9d1a-48df-a6b5-dcb5c4e4eaf1@email.android.com> In-Reply-To: <0d908cf4-9d1a-48df-a6b5-dcb5c4e4eaf1@email.android.com> Content-Type: multipart/mixed; boundary="------------040200040203050101060706" X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg01048.txt.bz2 This is a multi-part message in MIME format. --------------040200040203050101060706 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-length: 916 Hi Richard, > Instead of modifying testcases I'd be less nervous if you'd make them require 32bit. Otherwise you should reproduce the original issues with the modified testcases. OK, I can do that. How about this patch. OK to apply ? Cheers Nick gcc/testsuite/ChangeLog 2014-02-18 Nick Clifton * gcc.dg/graphite/pr46966.c: Only run on 32-bit+ targets. * gcc.dg/pr23623.c: Likewise. * gcc.dg/pr48784-1.c: Likewise. * gcc.dg/pr48784-2.c: Likewise. * gcc.dg/pr56997-2.c: Likewise. * gcc.dg/sms-6.c: Likewise. * gcc.dg/torture/pr60183.c: Likewise. * gcc.dg/torture/vec-cvt-1.c: Likewise. * gcc.c-torture/execute/20061220-1.x: New. * gcc.c-torture/execute/pr43220.x: New. * gcc.c-torture/execute/pr51581-1.x: New. * gcc.c-torture/execute/pr51581-2.x: New. * gcc.c-torture/execute/pr58570.x: New. * gcc.c-torture/unsorted/DFcmp.x: New. * gcc.c-torture/unsorted/SFset.x: New. --------------040200040203050101060706 Content-Type: text/x-patch; name="16-bit.tests.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="16-bit.tests.patch" Content-length: 5492 Index: gcc/testsuite/gcc.dg/graphite/pr46966.c =================================================================== --- gcc/testsuite/gcc.dg/graphite/pr46966.c (revision 207836) +++ gcc/testsuite/gcc.dg/graphite/pr46966.c (working copy) @@ -1,5 +1,7 @@ /* PR tree-optimization/46966 */ /* { dg-do compile } */ +/* This test is too big for small targets. */ +/* { dg-require-effective-target size32plus } */ /* { dg-options "-O -floop-interchange -ffast-math -fno-tree-copy-prop -fno-tree-loop-im" } */ int a[1000][1000]; Index: gcc/testsuite/gcc.dg/pr23623.c =================================================================== --- gcc/testsuite/gcc.dg/pr23623.c (revision 207836) +++ gcc/testsuite/gcc.dg/pr23623.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target size32plus } */ /* { dg-options "-fstrict-volatile-bitfields -fdump-rtl-final" } */ /* With -fstrict-volatile-bitfields, the volatile accesses to bf2.b Index: gcc/testsuite/gcc.dg/pr48784-1.c =================================================================== --- gcc/testsuite/gcc.dg/pr48784-1.c (revision 207836) +++ gcc/testsuite/gcc.dg/pr48784-1.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-require-effective-target size32plus } */ /* { dg-options "-fstrict-volatile-bitfields" } */ extern void abort (void); Index: gcc/testsuite/gcc.dg/pr48784-2.c =================================================================== --- gcc/testsuite/gcc.dg/pr48784-2.c (revision 207836) +++ gcc/testsuite/gcc.dg/pr48784-2.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-require-effective-target size32plus } */ /* { dg-options "-fno-strict-volatile-bitfields" } */ extern void abort (void); Index: gcc/testsuite/gcc.dg/pr56997-2.c =================================================================== --- gcc/testsuite/gcc.dg/pr56997-2.c (revision 207836) +++ gcc/testsuite/gcc.dg/pr56997-2.c (working copy) @@ -1,5 +1,6 @@ /* Test volatile access to unaligned field. */ /* { dg-do run } */ +/* { dg-require-effective-target size32plus } */ /* { dg-options "-fstrict-volatile-bitfields" } */ extern void abort (void); Index: gcc/testsuite/gcc.dg/sms-6.c =================================================================== --- gcc/testsuite/gcc.dg/sms-6.c (revision 207836) +++ gcc/testsuite/gcc.dg/sms-6.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-require-effective-target size32plus } */ /* { dg-options "-O2 -fmodulo-sched -fdump-rtl-sms --param sms-min-sc=1" } */ /* { dg-options "-O2 -fmodulo-sched -fdump-rtl-sms --param sms-min-sc=1 -fmodulo-sched-allow-regmoves" { target powerpc*-*-* } } */ Index: gcc/testsuite/gcc.dg/torture/pr60183.c =================================================================== --- gcc/testsuite/gcc.dg/torture/pr60183.c (revision 207836) +++ gcc/testsuite/gcc.dg/torture/pr60183.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-require-effective-target size32plus } */ /* Large so an out-of-bound read will crash. */ unsigned char c[0x30001] = { 1 }; Index: gcc/testsuite/gcc.dg/torture/vec-cvt-1.c =================================================================== --- gcc/testsuite/gcc.dg/torture/vec-cvt-1.c (revision 207836) +++ gcc/testsuite/gcc.dg/torture/vec-cvt-1.c (working copy) @@ -1,4 +1,6 @@ /* { dg-do run } */ +/* This test is too big for small targets. */ +/* { dg-require-effective-target size32plus } */ #include *** /dev/null 2014-02-18 08:00:55.971916261 +0000 --- gcc/testsuite/gcc.c-torture/execute/20061220-1.x 2014-02-12 17:20:52.601890142 +0000 *************** *** 0 **** --- 1,6 ---- + # asm statements for the RL78 do not work as expected + if { [istarget "rl78-*-*"] } { + return 1; + } + + return 0 *** /dev/null 2014-02-18 08:00:55.971916261 +0000 --- gcc/testsuite/gcc.c-torture/execute/pr43220.x 2014-02-18 13:07:38.953426402 +0000 *************** *** 0 **** --- 1,7 ---- + load_lib target-supports.exp + + if { [check_effective_target_int16] } { + return 1 + } + + return 0; *** /dev/null 2014-02-18 08:00:55.971916261 +0000 --- gcc/testsuite/gcc.c-torture/execute/pr51581-1.x 2014-02-12 17:27:28.208877630 +0000 *************** *** 0 **** --- 1,7 ---- + load_lib target-supports.exp + + if { [check_effective_target_int32plus] } { + return 0 + } + + return 1; *** /dev/null 2014-02-18 08:00:55.971916261 +0000 --- gcc/testsuite/gcc.c-torture/execute/pr51581-2.x 2014-02-12 17:28:01.607876574 +0000 *************** *** 0 **** --- 1,7 ---- + load_lib target-supports.exp + + if { [check_effective_target_int32plus] } { + return 0 + } + + return 1; *** /dev/null 2014-02-18 08:00:55.971916261 +0000 --- gcc/testsuite/gcc.c-torture/execute/pr58570.x 2014-02-18 13:08:06.783427174 +0000 *************** *** 0 **** --- 1,7 ---- + load_lib target-supports.exp + + if { [check_effective_target_int16] } { + return 1 + } + + return 0; *** /dev/null 2014-02-18 08:00:55.971916261 +0000 --- gcc/testsuite/gcc.c-torture/unsorted/DFcmp.x 2014-02-18 13:08:23.102427626 +0000 *************** *** 0 **** --- 1,7 ---- + load_lib target-supports.exp + + if { [check_effective_target_int16] } { + return 1 + } + + return 0; *** /dev/null 2014-02-18 08:00:55.971916261 +0000 --- gcc/testsuite/gcc.c-torture/unsorted/SFset.x 2014-02-18 13:08:57.315428575 +0000 *************** *** 0 **** --- 1,7 ---- + load_lib target-supports.exp + + if { [check_effective_target_int16] } { + return 1 + } + + return 0; --------------040200040203050101060706--