From patchwork Mon Apr 4 12:00:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Senthil Kumar Selvaraj X-Patchwork-Id: 605855 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qdrD26zXWz9s9n for ; Mon, 4 Apr 2016 22:00:48 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=nKiM2m78; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=imeuHOlInlpwVuA/vWaEb35j4InttU4U/vMVbjpQZuguiYIxmV /8c36W4X+e7ZnLHlDKoNktsG9ZknxZBuE3xlbRiE2i1SZktPWuEXuGuB/jEbypgI k2ByGMnYEdErCL0TENgNq7tPtojm7iF5fM26OinPQLFr0NCrb+LayrrLQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; s= default; bh=zcz7tZIq8wxPjjplOYvWWMng3HI=; b=nKiM2m78uLuJ7dlMyBe0 gMAVqIEgyAO2kU28TEZEKjDfiIRGBAbk1tbwOwKVCscVMvUbNUY8FgpQG+VAQtFC bX0K3MRr6HwndDq7ezZn/IOucILW0BavRYra7omEjeErI76MfbcmSaIAwaFEQ9v3 AggJiH6ROURGW2bAdqD70gw= Received: (qmail 116729 invoked by alias); 4 Apr 2016 12:00:40 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 116627 invoked by uid 89); 4 Apr 2016 12:00:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=unnecessarily, H*RU:sk:jaguar., HCC:D*net, H*r:0200 X-HELO: eusmtp01.atmel.com Received: from eusmtp01.atmel.com (HELO eusmtp01.atmel.com) (212.144.249.242) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 04 Apr 2016 12:00:23 +0000 Received: from HNOCHT02.corp.atmel.com (10.161.30.162) by eusmtp01.atmel.com (10.161.101.30) with Microsoft SMTP Server (TLS) id 14.3.235.1; Mon, 4 Apr 2016 14:00:17 +0200 Received: from jaguar.atmel.com (10.161.30.18) by HNOCHT02.corp.atmel.com (10.161.30.162) with Microsoft SMTP Server (TLS) id 14.3.235.1; Mon, 4 Apr 2016 14:00:18 +0200 User-agent: mu4e 0.9.17; emacs 24.5.1 From: Senthil Kumar Selvaraj To: gcc Patches CC: Mike Stump , Jeff Law Subject: [Patch, testsuite] Require int32plus and scheduling support for some tests Date: Mon, 4 Apr 2016 17:30:43 +0530 Message-ID: <87inzxeg7o.fsf@atmel.com> MIME-Version: 1.0 X-IsSubscribed: yes Hi, This patch add dg-require-effective-target directives to a few tests that were failing unnecessarily for the AVR target. One of them invokes the compiler with -fschedule-insns2 - I've required scheduling support for that testcase. For all other tests, I've required int32plus - they either use bit shifts wider than 16 bits (AVR's int size), or use int constants that are too big for a 16 bit int. If ok, could someone commit please? I don't have commit access. Regards Senthil 2016-04-04 Senthil Kumar Selvaraj * gcc.c-torture/compile/pr69102.c: Require scheduling support. * gcc.c-torture/compile/pr37669.c: Require >=32 bit integers. * gcc.c-torture/execute/bitfld-6.c: Likewise. * gcc.c-torture/execute/bitfld-7.c: Likewise. * gcc.c-torture/execute/pr38151.c: Likewise. * gcc.c-torture/execute/pr66556.c: Likewise. * gcc.c-torture/execute/pr67781.c: Likewise. * gcc.c-torture/execute/pr68648.c: Likewise. diff --git gcc/testsuite/gcc.c-torture/compile/pr37669.c gcc/testsuite/gcc.c-torture/compile/pr37669.c index c78243b..a2eafc7 100644 --- gcc/testsuite/gcc.c-torture/compile/pr37669.c +++ gcc/testsuite/gcc.c-torture/compile/pr37669.c @@ -1,5 +1,6 @@ /* This testcase used to fail because a miscompiled execute_fold_all_builtins. */ /* { dg-options "-fgnu89-inline" } */ +/* { dg-require-effective-target int32plus } */ typedef __SIZE_TYPE__ size_t; extern __inline __attribute__ ((__always_inline__)) int __attribute__ diff --git gcc/testsuite/gcc.c-torture/compile/pr69102.c gcc/testsuite/gcc.c-torture/compile/pr69102.c index b1328ca..1f0cdc6 100644 --- gcc/testsuite/gcc.c-torture/compile/pr69102.c +++ gcc/testsuite/gcc.c-torture/compile/pr69102.c @@ -1,4 +1,5 @@ /* { dg-options "-Og -fPIC -fschedule-insns2 -fselective-scheduling2 -fno-tree-fre --param=max-sched-extend-regions-iters=10" } */ +/* { dg-require-effective-target scheduling } */ void bar (unsigned int); void diff --git gcc/testsuite/gcc.c-torture/execute/bitfld-6.c gcc/testsuite/gcc.c-torture/execute/bitfld-6.c index 50927dc..b8c5cbd 100644 --- gcc/testsuite/gcc.c-torture/execute/bitfld-6.c +++ gcc/testsuite/gcc.c-torture/execute/bitfld-6.c @@ -1,3 +1,4 @@ +/* { dg-require-effective-target int32plus } */ union U { const int a; diff --git gcc/testsuite/gcc.c-torture/execute/bitfld-7.c gcc/testsuite/gcc.c-torture/execute/bitfld-7.c index e9a61df..350e7a3 100644 --- gcc/testsuite/gcc.c-torture/execute/bitfld-7.c +++ gcc/testsuite/gcc.c-torture/execute/bitfld-7.c @@ -1,3 +1,4 @@ +/* { dg-require-effective-target int32plus } */ union U { const int a; diff --git gcc/testsuite/gcc.c-torture/execute/pr38151.c gcc/testsuite/gcc.c-torture/execute/pr38151.c index 5ee058d..86c8f77 100644 --- gcc/testsuite/gcc.c-torture/execute/pr38151.c +++ gcc/testsuite/gcc.c-torture/execute/pr38151.c @@ -1,4 +1,5 @@ /* { dg-options "-Wno-psabi" } */ +/* { dg-require-effective-target int32plus } */ void abort (void); struct S2848 diff --git gcc/testsuite/gcc.c-torture/execute/pr66556.c gcc/testsuite/gcc.c-torture/execute/pr66556.c index f7acf1c..d1259c4 100644 --- gcc/testsuite/gcc.c-torture/execute/pr66556.c +++ gcc/testsuite/gcc.c-torture/execute/pr66556.c @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-require-effective-target int32plus } */ extern void abort (void); diff --git gcc/testsuite/gcc.c-torture/execute/pr67781.c gcc/testsuite/gcc.c-torture/execute/pr67781.c index bf50aa2..71ccd6a 100644 --- gcc/testsuite/gcc.c-torture/execute/pr67781.c +++ gcc/testsuite/gcc.c-torture/execute/pr67781.c @@ -1,3 +1,4 @@ +/* { dg-require-effective-target int32plus } */ #ifdef __UINT32_TYPE__ typedef __UINT32_TYPE__ uint32_t; #else diff --git gcc/testsuite/gcc.c-torture/execute/pr68648.c gcc/testsuite/gcc.c-torture/execute/pr68648.c index fc66806..db55bd0 100644 --- gcc/testsuite/gcc.c-torture/execute/pr68648.c +++ gcc/testsuite/gcc.c-torture/execute/pr68648.c @@ -1,3 +1,4 @@ +/* { dg-require-effective-target int32plus } */ int __attribute__ ((noinline)) foo (void) {