From patchwork Thu Mar 14 10:58:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 227622 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 562282C0085 for ; Thu, 14 Mar 2013 21:59:14 +1100 (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=1363863556; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Date:From:To:Subject:Message-ID:Reply-To: MIME-Version:Content-Type:Content-Disposition:User-Agent: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=ygN4mu3ToPRfQjxQPoGU yBteegM=; b=uzEe817mQN3Wk4bPyu3uXEVQxSUzIFIeJYbFqnmTz1Qy4lf0dePl HSv3tbHY1AnUgf9FymM3q/A4mR1b3xLMgJMS2bI8YJXGgJQ+4bp0jTf6ooE8bScu Bx4ukbd0eU+DNiFqRL7+gGb0t1x7/MOj4i6kA1tgM+JJPQf48unl/k4= 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:Received:Date:From:To:Subject:Message-ID:Reply-To:MIME-Version:Content-Type:Content-Disposition:User-Agent:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=IbSFaWuHE7y6oPZNNa99bjRQAlWsBgrB+5+S7HUMdQzh21YrZ9HC9UNzSMpx7w 3/hcOf6B9WVkbFeqJkxIVHG2UF3vlr/enJd2kcw8ma5QSL+n+zdykODVT8GCVsPQ sr0rVKwkAfZBlgiuqtAoRgOeJlUyKYxGn8uKms8Hm1v8w=; Received: (qmail 23895 invoked by alias); 14 Mar 2013 10:59:08 -0000 Received: (qmail 23885 invoked by uid 22791); 14 Mar 2013 10:59:07 -0000 X-SWARE-Spam-Status: No, hits=-7.5 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, KHOP_SPAMHAUS_DROP, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Mar 2013 10:59:00 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r2EAx0uO018290 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 14 Mar 2013 06:59:00 -0400 Received: from zalov.cz (vpn1-4-156.ams2.redhat.com [10.36.4.156]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r2EAwwsr031749 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 14 Mar 2013 06:58:59 -0400 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by zalov.cz (8.14.5/8.14.5) with ESMTP id r2EAwvV6000412 for ; Thu, 14 Mar 2013 11:58:57 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.14.5/8.14.5/Submit) id r2EAwupR000411 for gcc-patches@gcc.gnu.org; Thu, 14 Mar 2013 11:58:56 +0100 Date: Thu, 14 Mar 2013 11:58:51 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] Fix up graphite tests for PR53265 Message-ID: <20130314105851.GB12913@tucnak.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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 Hi! Usually I bootstrap/regtest without graphite, so haven't seen these 3 test FAILs with my recent patch. Fixed thusly, tested on x86_64-linux, committed to trunk as obvious. 2013-03-14 Jakub Jelinek PR tree-optimization/53265 * gcc.dg/graphite/scop-3.c (toto): Increase array size to avoid undefined behavior. * gcc.dg/graphite/id-6.c (test): Likewise. * gcc.dg/graphite/pr35356-2.c: Adjust regexp patterns to only look for MIN_EXPR and MAX_EXPR in GIMPLE stmts. Jakub --- gcc/testsuite/gcc.dg/graphite/scop-3.c.jj 2009-08-03 09:42:19.000000000 +0200 +++ gcc/testsuite/gcc.dg/graphite/scop-3.c 2013-03-14 11:37:25.719648369 +0100 @@ -1,7 +1,7 @@ int toto() { int i, j, k; - int a[100][100]; + int a[100][200]; int b[100]; for (i = 1; i < 100; i++) --- gcc/testsuite/gcc.dg/graphite/id-6.c.jj 2009-08-03 09:42:19.000000000 +0200 +++ gcc/testsuite/gcc.dg/graphite/id-6.c 2013-03-14 11:37:36.628586994 +0100 @@ -2,7 +2,7 @@ void foo (int); int test () { - int a[N]; + int a[N + 8]; unsigned i; for (i = 0; i < N; i++) --- gcc/testsuite/gcc.dg/graphite/pr35356-2.c.jj 2011-02-15 15:31:56.000000000 +0100 +++ gcc/testsuite/gcc.dg/graphite/pr35356-2.c 2013-03-14 11:47:54.655777100 +0100 @@ -39,6 +39,6 @@ foo (int bar, int n, int k) */ -/* { dg-final { scan-tree-dump-times "MIN_EXPR" 4 "graphite" } } */ -/* { dg-final { scan-tree-dump-times "MAX_EXPR" 4 "graphite" } } */ +/* { dg-final { scan-tree-dump-times "MIN_EXPR\[^\\n\\r]*;" 4 "graphite" } } */ +/* { dg-final { scan-tree-dump-times "MAX_EXPR\[^\\n\\r]*;" 4 "graphite" } } */ /* { dg-final { cleanup-tree-dump "graphite" } } */