From patchwork Wed Oct 19 19:50:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 120689 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]) by ozlabs.org (Postfix) with SMTP id 61421B71C7 for ; Thu, 20 Oct 2011 06:50:35 +1100 (EST) Received: (qmail 24074 invoked by alias); 19 Oct 2011 19:50:31 -0000 Received: (qmail 24052 invoked by uid 22791); 19 Oct 2011 19:50:28 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, TW_ZJ, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-yw0-f47.google.com (HELO mail-yw0-f47.google.com) (209.85.213.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Oct 2011 19:50:15 +0000 Received: by ywm39 with SMTP id 39so2303546ywm.20 for ; Wed, 19 Oct 2011 12:50:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.72.167 with SMTP id t27mr11824366yhd.127.1319053814390; Wed, 19 Oct 2011 12:50:14 -0700 (PDT) Received: by 10.146.82.5 with HTTP; Wed, 19 Oct 2011 12:50:14 -0700 (PDT) Date: Wed, 19 Oct 2011 21:50:14 +0200 Message-ID: Subject: [PATCH, testsuite]: Require non_strict_align effective target for gcc.dg/ipa/ipa-sra-[26].c From: Uros Bizjak To: gcc-patches@gcc.gnu.org Cc: Jakub Jelinek 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 Hello! These two tests require non_strict_aligned effective target, since IPA fails in tree_non_mode_aligned_mem_p () for "cow" and "calf" candidates for STRICT_ALIGNMENT targets. Mode alignment requires 32 bytes, while data is aligned to 8 bytes. 2011-10-19 Uros Bizjak * gcc.dg/ipa/ipa-sra-2.c: Add dg-require-effective-target non_strict_align. * gcc.dg/ipa/ipa-sra-6.c: Ditto. Tested on x86_64-pc-linux-gnu and alphaev68-pc-linux-gnu, where the patch "fixes": FAIL: gcc.dg/ipa/ipa-sra-2.c scan-tree-dump eipa_sra "About to replace expr cow_.*D.->red with \\*ISRA" FAIL: gcc.dg/ipa/ipa-sra-2.c scan-tree-dump eipa_sra "About to replace expr cow_.*D.->green with ISRA" FAIL: gcc.dg/ipa/ipa-sra-2.c scan-tree-dump eipa_sra "About to replace expr calf_.*D.->red with \\*ISRA" FAIL: gcc.dg/ipa/ipa-sra-2.c scan-tree-dump eipa_sra "About to replace expr calf_.*D.->green with ISRA" FAIL: gcc.dg/ipa/ipa-sra-6.c scan-tree-dump-times eipa_sra "foo " 1 OK for mainline and 4.6 branch? Uros. Index: gcc.dg/ipa/ipa-sra-2.c =================================================================== --- gcc.dg/ipa/ipa-sra-2.c (revision 180193) +++ gcc.dg/ipa/ipa-sra-2.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fipa-sra -fdump-tree-eipa_sra-details" } */ +/* { dg-require-effective-target non_strict_align } */ struct bovid { Index: gcc.dg/ipa/ipa-sra-6.c =================================================================== --- gcc.dg/ipa/ipa-sra-6.c (revision 180193) +++ gcc.dg/ipa/ipa-sra-6.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fipa-sra -fdump-tree-eipa_sra-slim" } */ +/* { dg-require-effective-target non_strict_align } */ struct bovid {