From patchwork Thu Apr 11 15:21:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 235793 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id D30992C0082 for ; Fri, 12 Apr 2013 01:21:40 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=qla6721SNVox5CjumEICUW3iDb67AkZZWuPB9uSQVSSh7x p3W6IoTb6FcgSyezrWGIzxg+k8yqhJkYlnDHHhyw+Jrl3/eI8YL985xS8PJjK0co BKUmqOwN66pnDASbvAN5zb4SXOfWLxxwFVmIWGgcUOSJ95mFvlHZd4Tt9xRfE= 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 :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=/TreedO4WvMnNzDwsm3UemioL7E=; b=TPNTqBf/g+bWl0N0K0VY OmFsXQ5TKf/5HSDJ/uU2xD27k08a1Tw8lcSNTnUWRtvfd1n1LiTOWOn7+pqiRVRl hJJMKtCpmVx68j2a2bX2/+pQ27zhsW8vFUzE4uTU08GVaYA1rLLDGbvsrziuQg0P h6lGJRTJ4EZZJjT9+atfDZ8= Received: (qmail 30538 invoked by alias); 11 Apr 2013 15:21:34 -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 30517 invoked by uid 89); 11 Apr 2013 15:21:33 -0000 X-Spam-SWARE-Status: No, score=-7.9 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 11 Apr 2013 15:21:27 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r3BFLQpW012983 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 11 Apr 2013 11:21:26 -0400 Received: from stumpy.slc.redhat.com (ovpn-113-84.phx2.redhat.com [10.3.113.84]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r3BFLPl5009081 for ; Thu, 11 Apr 2013 11:21:25 -0400 Message-ID: <5166D4F5.9060000@redhat.com> Date: Thu, 11 Apr 2013 09:21:25 -0600 From: Jeff Law User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130402 Thunderbird/17.0.5 MIME-Version: 1.0 To: gcc-patches Subject: [PATCH] Don't run vrp87.c on various targets X-Virus-Found: No As noted in PR56900, the new vrp87 test does not work on some targets as the code ultimately fed to vrp is dependent on BRANCH_COST. I scanned all the backends for those which use the default BRANCH_COST, which is known to perturb the code in a way that VRP can't see the optimization opportunity. For each of those targets this patch simply avoids running the test. Spot checked v850 & m68k (default BRANCH_COST, should not run) and x86 (should run). Installed as obvious. JEff commit 9613e7e3cf45587992a3aacc93e83591f5922b55 Author: Jeff Law Date: Thu Apr 11 07:50:08 2013 -0600 * gcc.dg/tree-ssa/vrp87.c: Do not run test on various targets. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 58447db..4b3310c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2013-04-11 Jeff Law + + * gcc.dg/tree-ssa/vrp87.c: Do not run test on various targets. + 2013-04-11 Paolo Carlini PR c++/56913 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp87.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp87.c index 7feff81..c8e4571 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp87.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp87.c @@ -1,4 +1,5 @@ -/* { dg-do compile } */ +/* { dg-do compile { target { ! "m68k*-*-* mmix*-*-* mep*-*-* bfin*-*-* v850*-*-* picochip*-*-* moxie*-*-* cris*-*-* m32c*-*-* fr30*-*-* mcore*-*-*"} } } */ + /* { dg-options "-O2 -fdump-tree-vrp2-details -fdump-tree-cddce2-details" } */ struct bitmap_head_def;