From patchwork Thu Aug 11 07:40:07 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: 658094 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 3s90MC2VQ5z9sXx for ; Thu, 11 Aug 2016 17:41:25 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=T3L7lqIz; 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:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=NiNizt37Xr4C9Bl+sRFzxUZnaBslCFFXYJWqcGeJChd1baAryIYmo Cc/uF4JtFaLEUocUxqlYz5HXbRpcOH92n1z0su2MTGV916J29x/X62QfqcEf+WAl RqyUeZlSL8RUbADMFYpwd70/HyTedsCJruXffMUoz9fukguZY+ZUu8= 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:subject:date:message-id:mime-version:content-type; s= default; bh=tUXFCXDIHpQSpAoLMzo/qY6goPA=; b=T3L7lqIz1vjKjC9sLoMy 4KdXi7vyrXEzK6FPKBBDV73i3plilkRyYRzlOP+dq1Figz29m1e3gR9zf1WLvbcx pNOxOjM19ZQzy8KH+pokpkp6he23XQcLBJ7OMlvq17AWdJ9wDglx6DfshPcHSpW8 7ipwR8OWuYopL4lephdfPwU= Received: (qmail 107829 invoked by alias); 11 Aug 2016 07:41:16 -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 107810 invoked by uid 89); 11 Aug 2016 07:41:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=BAYES_50, KAM_ASCII_DIVIDERS, RP_MATCHES_RCVD, SPF_PASS autolearn=no version=3.3.2 spammy=H*Ad:D*comcast.net, POWER, D*atmel.com, sk:fdump-t X-HELO: fencepost.gnu.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (208.118.235.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 11 Aug 2016 07:41:05 +0000 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51707) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1bXkbv-00040y-30 for gcc-patches@gnu.org; Thu, 11 Aug 2016 03:41:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXkbq-0002an-DZ for gcc-patches@gnu.org; Thu, 11 Aug 2016 03:41:02 -0400 Received: from eusmtp01.atmel.com ([212.144.249.243]:54492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXkbq-0002aA-2a for gcc-patches@gnu.org; Thu, 11 Aug 2016 03:40:58 -0400 Received: from HNOCHT02.corp.atmel.com (10.145.133.41) by eusmtp01.atmel.com (10.145.145.31) with Microsoft SMTP Server (TLS) id 14.3.235.1; Thu, 11 Aug 2016 09:40:46 +0200 Received: from jaguar.atmel.com (10.145.133.18) by HNOCHT02.corp.atmel.com (10.145.133.41) with Microsoft SMTP Server (TLS) id 14.3.235.1; Thu, 11 Aug 2016 09:40:50 +0200 User-agent: mu4e 0.9.17; emacs 24.5.1 From: Senthil Kumar Selvaraj To: gcc-patches , Mike Stump Subject: [Patch, testsuite] Skip tests that expect 4 byte alignment for avr Date: Thu, 11 Aug 2016 13:10:07 +0530 Message-ID: <8737mblpns.fsf@atmel.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 212.144.249.243 X-IsSubscribed: yes Hi, The below patch adds the AVR target to the list of targets that don't have natural_alignment_32. It also skips ipa/propalign-*.c tests (which expect 4 byte alignment), if both natural_alignment_32 and natural_alignment_64 are false. Is this the right way to fix this? Ok to commit? Regards Senthil gcc/testsuite/ChangeLog: 2016-08-11 Senthil Kumar Selvaraj * gcc.dg/ipa/propalign-1.c: Skip for targets with !natural_alignment_32 and !natural_alignment_64. * gcc.dg/ipa/propalign-2.c: Likewise. * gcc.dg/ipa/propalign-3.c: Likewise. * gcc.dg/ipa/propalign-4.c: Likewise. * gcc.dg/ipa/propalign-5.c: Likewise. * lib/target-supports.exp (check_effective_target_natural_alignment_32): Add avr-*-*. Index: gcc/testsuite/gcc.dg/ipa/propalign-1.c =================================================================== --- gcc/testsuite/gcc.dg/ipa/propalign-1.c (revision 239318) +++ gcc/testsuite/gcc.dg/ipa/propalign-1.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-early-inlining -fdump-ipa-cp -fdump-tree-optimized" } */ +/* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */ #include Index: gcc/testsuite/gcc.dg/ipa/propalign-2.c =================================================================== --- gcc/testsuite/gcc.dg/ipa/propalign-2.c (revision 239318) +++ gcc/testsuite/gcc.dg/ipa/propalign-2.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-early-inlining -fdump-ipa-cp -fdump-tree-optimized" } */ +/* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */ #include Index: gcc/testsuite/gcc.dg/ipa/propalign-3.c =================================================================== --- gcc/testsuite/gcc.dg/ipa/propalign-3.c (revision 239318) +++ gcc/testsuite/gcc.dg/ipa/propalign-3.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-ipa-cp-alignment -fno-early-inlining -fdump-ipa-cp -fdump-tree-optimized" } */ +/* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */ #include Index: gcc/testsuite/gcc.dg/ipa/propalign-4.c =================================================================== --- gcc/testsuite/gcc.dg/ipa/propalign-4.c (revision 239318) +++ gcc/testsuite/gcc.dg/ipa/propalign-4.c (working copy) @@ -1,5 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-ipa-cp" } */ +/* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */ + int n; static void Index: gcc/testsuite/gcc.dg/ipa/propalign-5.c =================================================================== --- gcc/testsuite/gcc.dg/ipa/propalign-5.c (revision 239318) +++ gcc/testsuite/gcc.dg/ipa/propalign-5.c (working copy) @@ -1,5 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-ipa-cp" } */ +/* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */ + int n; static void Index: gcc/testsuite/lib/target-supports.exp =================================================================== --- gcc/testsuite/lib/target-supports.exp (revision 239318) +++ gcc/testsuite/lib/target-supports.exp (working copy) @@ -5221,7 +5221,8 @@ } else { # FIXME: 32bit powerpc: guaranteed only if MASK_ALIGN_NATURAL/POWER. set et_natural_alignment_32_saved 1 - if { ([istarget *-*-darwin*] && [is-effective-target lp64]) } { + if { ([istarget *-*-darwin*] && [is-effective-target lp64]) + || [istarget avr-*-*] } { set et_natural_alignment_32_saved 0 } }