From patchwork Fri Sep 7 10:02:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 182349 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 57C942C0093 for ; Fri, 7 Sep 2012 20:05:51 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1347617152; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:From:To:Subject:Date:User-Agent:MIME-Version: Content-Type:Message-Id:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=DzjDYuWQPWWDNJAVRrMBoA114LA=; b=oN/j2ss59ZTggra KkRy42q6abEazPdoWXDX39ioKlzLAowxfNk+Q0+KZ69jOTbzrrJ1xalYlDovMZy5 iFO+eN9bbpryKvZezpnKschkZ13E6fwG8sJ62rI4l77cWjEVO3eLMYF9AK6O5M78 xf+vkvRSLHNfzc9bRp6qmGc55IqM= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:From:To:Subject:Date:User-Agent:MIME-Version:Content-Type:Message-Id:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=NPC4a1jUy9dwBgNyQZYfvO+0JxdToC0049xqzhlDnA121QsuRwnqX0pw6GIGap l5ziiD4w9T31tlVQTkqMh+fU+5PhJhUW78hBDMgqRShomT4VB4JxWEoQUNojcwha oXNk3nYgyu28innCSXCwmaTecXmmSA+PVf0JR6RdYOtUE=; Received: (qmail 23388 invoked by alias); 7 Sep 2012 10:05:46 -0000 Received: (qmail 23374 invoked by uid 22791); 7 Sep 2012 10:05:45 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 07 Sep 2012 10:05:32 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 392E629025E for ; Fri, 7 Sep 2012 12:05:41 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XaMYL951VmiS for ; Fri, 7 Sep 2012 12:05:41 +0200 (CEST) Received: from hermes.site (ADijon-552-1-96-50.w92-148.abo.wanadoo.fr [92.148.143.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 0F2B3290034 for ; Fri, 7 Sep 2012 12:05:41 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: Adjust gcc.dg/pr44194-1.c Date: Fri, 7 Sep 2012 12:02:37 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.34.10-0.6-desktop; KDE/4.4.4; x86_64; ; ) MIME-Version: 1.0 Message-Id: <201209071202.38030.ebotcazou@adacore.com> 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 There are 3 global deletions instead of 2 on SPARC64 and 0 on Alpha since the structure is returned in memory. Tested on x86-64/Linux and SPARC64/Linux, applied on mainline and 4.7 branch. 2012-09-07 Eric Botcazou * gcc.dg/pr44194-1.c: Skip on Alpha and adjust regexp for SPARC64. Index: gcc.dg/pr44194-1.c =================================================================== --- gcc.dg/pr44194-1.c (revision 190863) +++ gcc.dg/pr44194-1.c (working copy) @@ -1,4 +1,4 @@ -/* { dg-do compile { target { { { { i?86-*-* x86_64-*-* } && x32 } || lp64 } && { ! s390*-*-* } } } } */ +/* { dg-do compile { target { { { { { i?86-*-* x86_64-*-* } && x32 } || lp64 } && { ! s390*-*-* } } && { ! alpha*-*-* } } } } */ /* { dg-options "-O2 -fdump-rtl-dse1" } */ /* Restricting to 64-bit targets since 32-bit targets return structures in memory. */ @@ -10,5 +10,5 @@ void func() { struct ints s = foo(); bar(s.a, s.b); } -/* { dg-final { scan-rtl-dump "global deletions = 2" "dse1" } } */ +/* { dg-final { scan-rtl-dump "global deletions = (2|3)" "dse1" } } */ /* { dg-final { cleanup-rtl-dump "dse1" } } */