From patchwork Thu Jan 12 16:56:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyrill Tkachov X-Patchwork-Id: 91190 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1713421qgi; Thu, 12 Jan 2017 08:56:49 -0800 (PST) X-Received: by 10.99.113.82 with SMTP id b18mr18892884pgn.118.1484240209193; Thu, 12 Jan 2017 08:56:49 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id v190si9783072pgb.58.2017.01.12.08.56.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 08:56:49 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-445982-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-445982-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-445982-patch=linaro.org@gcc.gnu.org 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:cc:subject:content-type; q=dns; s=default; b=S2VPeYhI5qsXCWsApi0Xn2dsHGZ9c42OJTHo1Sc1KVh DGjvLIiaqbZvUVqomf/KumYz0gWqCpxo8p9np6XV4knLyho1DlK/kTr1U9L8ZWNv u+ml0X5hfztTcSe68fYnllInpTFQ2W7ejWvlTxCT7R5fnPuWxJX6Yk+R4YHW8hnA = 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:cc:subject:content-type; s=default; bh=S76CI7bKj+rdVbUsQ6GfW2BGtB8=; b=Vfqtk6fgrRPNuGQVC DxlbSdig+bcEnExR3Szaw2Vnuz5DImmwT4lbEeqmGSZpmJwI9k/IsZuuo/Oflbh7 bCiKGNd7JyivO4uPTgFmgKwodlqDPXRWZwKGhhPt9A+v22bSliZhJgTHzQbZmD/C TRzwnbna9mXiI03PYTEZAMlZdg= Received: (qmail 23417 invoked by alias); 12 Jan 2017 16:56:28 -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 23400 invoked by uid 89); 12 Jan 2017 16:56:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Pick, pin X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Jan 2017 16:56:15 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DDFDAAD7; Thu, 12 Jan 2017 08:56:13 -0800 (PST) Received: from [10.2.207.77] (e100706-lin.cambridge.arm.com [10.2.207.77]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6A9273F24D; Thu, 12 Jan 2017 08:56:13 -0800 (PST) Message-ID: <5877B52B.9000401@foss.arm.com> Date: Thu, 12 Jan 2017 16:56:11 +0000 From: Kyrill Tkachov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: GCC Patches CC: 'Jakub Jelinek' Subject: [PATCH] Add Cortex-A15 tuning to gcc.dg/uninit-pred-8_a.c Hi all, As discussed in the PR it's better to pin down the tuning for arm targets on this test so that the BRANCH_COST remains constant. This makes the test more stable across toolchains configured for different default CPUs. Ok to apply? Thanks, Kyrill 2017-01-12 Kyrylo Tkachov PR tree-optimization/78319 * gcc.dg/uninit-pred-8_a.c: Add -mtune=cortex-a15 for arm. Remove xfail. diff --git a/gcc/testsuite/gcc.dg/uninit-pred-8_a.c b/gcc/testsuite/gcc.dg/uninit-pred-8_a.c index c45fba0..c4cdf48 100644 --- a/gcc/testsuite/gcc.dg/uninit-pred-8_a.c +++ b/gcc/testsuite/gcc.dg/uninit-pred-8_a.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ /* { dg-options "-Wuninitialized -O2" } */ +/* Pick a particular tuning to pin down BRANCH_COST. */ +/* { dg-additional-options "-mtune=cortex-a15" { target arm*-*-* } } */ int g; void bar(); @@ -16,9 +18,8 @@ int foo (int n, int l, int m, int r) if (m) g++; else bar(); - /* marking this test as xfail on arm-none-eabi, see PR78319. */ if ( n || m || r || l) - blah(v); /* { dg-bogus "uninitialized" "bogus warning" { xfail arm-none-eabi } } */ + blah(v); /* { dg-bogus "uninitialized" "bogus warning" } */ if ( n ) blah(v); /* { dg-bogus "uninitialized" "bogus warning" } */