From patchwork Fri Jan 13 10:36:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 135779 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 2DCB0B6EEC for ; Fri, 13 Jan 2012 21:37:07 +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=1327055829; h=Comment: DomainKey-Signature:Received:Received:Received:Received: Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=dsJo37x8xymCAO3A7phJX6HByvo=; b=m/GCwNdanL8ENMo hGWEuoCTn1qR7z8718bxc67G+KMAvs4Bc+PQXtAcaRGIP5DkrzaE+SbUwplsbSWJ bliUt7tLAPytcUb4Dfbh1mEP5fBOklmMU9G8iNUbFa7h/aq8k+M/CBd28X31hmnY iTaybud0up+HCYcskht2T0ROP/QE= 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:X-RZG-AUTH:X-RZG-CLASS-ID:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:Content-Type:Content-Transfer-Encoding:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=KFgaTWeyI5Z0gp7EV9Vc3XEaIihznlnIFKpDPB797P1Dhk741g9Q80LVXRTeS5 mP8QNPe018Bf0WJK67XiKuFhRNSMA54veP61Vs3KP3QerwC7kT3RPeUr5KZQsgMa 84oB7uunhfQ99bAWVRkwOoZ2/H/n2z9osJ8qvLx6GJ7sM=; Received: (qmail 20313 invoked by alias); 13 Jan 2012 10:37:04 -0000 Received: (qmail 20305 invoked by uid 22791); 13 Jan 2012 10:37:03 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mo-p00-ob.rzone.de (HELO mo-p00-ob.rzone.de) (81.169.146.160) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Jan 2012 10:36:50 +0000 X-RZG-AUTH: :LXoWVUeid/7A29J/hMvvT2k715jHQaJercGObUOFkj18odoYNahU4Q== X-RZG-CLASS-ID: mo00 Received: from [192.168.0.22] (business-188-111-022-002.static.arcor-ip.net [188.111.22.2]) by smtp.strato.de (jimi mo61) (RZmta 27.3 AUTH) with ESMTPA id o0113fo0DAJRKo ; Fri, 13 Jan 2012 11:36:25 +0100 (MET) Message-ID: <4F100929.7010703@gjlay.de> Date: Fri, 13 Jan 2012 11:36:25 +0100 From: Georg-Johann Lay User-Agent: Thunderbird 2.0.0.24 (X11/20100302) MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org CC: Mike Stump Subject: [Patch, testsuite, AVR, committed]: Set BRANCH_COST > 1 in gcc.dg/pr46309.c 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 http://gcc.gnu.org/viewcvs?view=revision&revision=183151 As explained in its comment, the test case works only if BRANCH_COST > 1. This is done by the patch. * gcc.dg/pr46309.c: Set branch cost to greater 1 for avr. --- trunk/gcc/testsuite/gcc.dg/pr46309.c 2012/01/13 05:11:45 183150 +++ trunk/gcc/testsuite/gcc.dg/pr46309.c 2012/01/13 10:32:16 183151 @@ -4,6 +4,7 @@ /* The transformation depends on BRANCH_COST being greater than 1 (see the notes in the PR), so try to force that. */ /* { dg-additional-options "-mtune=octeon2" { target mips*-*-* } } */ +/* { dg-additional-options "-mbranch-cost=2" { target avr*-*-* } } */ int f1 (int a)