From patchwork Fri Mar 11 15:19:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyrill Tkachov X-Patchwork-Id: 596278 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B55CA1402A1 for ; Sat, 12 Mar 2016 02:20:09 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=SI9p0FH1; dkim-atps=neutral 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=VB4lnfNWFSZEc12XcqryLh+ucMTdTP6+u5zPCxtP9kr vGNnulojjdcOFRGfNdelPbXQ9v1nvKwskOIRsXoE+QjAzG/K5cEvlbQWw2vFB2v9 LRMxeL+Et3q4e1oT8XE6wj6R0s4rvAatmMJ+OBIzJ60/KSlTWC5L1vImxPDgXM7M = 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=FdJ8Djw1hqy0lMchsGikBW8zGBM=; b=SI9p0FH1ZPxLKYrRC ctrP8a8A+QpdMg7V9jrJkEowG3m1rkf5c3/8wIIOHIM+C5dCmSKmEBTw+E1B657U PFrPpuNTa4eWuU93GO7XvKQBVgZpr3O/aHlsLyt8lEgAY/xDj1QfbTfga0SzcZav n+bAzZ4lENv99dEK+adlQfNIyo= Received: (qmail 84128 invoked by alias); 11 Mar 2016 15:20:00 -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 84110 invoked by uid 89); 11 Mar 2016 15:20:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=Write, H*u:31.2.0, H*UA:31.2.0 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; Fri, 11 Mar 2016 15:19:59 +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 D9A7949; Fri, 11 Mar 2016 07:18:57 -0800 (PST) Received: from [10.2.206.200] (e100706-lin.cambridge.arm.com [10.2.206.200]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6D6973F25F; Fri, 11 Mar 2016 07:19:56 -0800 (PST) Message-ID: <56E2E21A.4010006@foss.arm.com> Date: Fri, 11 Mar 2016 15:19:54 +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: Marcus Shawcroft , Richard Earnshaw , James Greenhalgh Subject: [PATCH][AArch64] Fix gcc.target/aarch64/vect-reduc-or_1.c for -mcpu=cortex-a57 Hi all, I've been seeing this test FAIL for a toolchain configured with --with-cpu=cortex-a57 in the scan vectoriser dump check because the cost model for -mtune=cortex-a57 decides not to vectorise. This patch disables the vectoriser cost model and makes this test pass on all configurations. I think this test is supposed to test the capabilities of the vectoriser rather than the cost model decisions (we'd have to add a specific -mtune option otherwise) Ok for trunk? Thanks, Kyrill 2016-03-11 Kyrylo Tkachov * gcc.target/aarch64/vect-reduc-or_1.c: Add -fno-vect-cost-model to dg-options. diff --git a/gcc/testsuite/gcc.target/aarch64/vect-reduc-or_1.c b/gcc/testsuite/gcc.target/aarch64/vect-reduc-or_1.c index cfb1231d69bbabac3da931cee2fd3fd786a29305..6261e9d1ea6fa8949d392543e08b880477a1ed5d 100644 --- a/gcc/testsuite/gcc.target/aarch64/vect-reduc-or_1.c +++ b/gcc/testsuite/gcc.target/aarch64/vect-reduc-or_1.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-all" } */ +/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-all -fno-vect-cost-model" } */ /* Write a reduction loop to be reduced using whole vector right shift. */ extern void abort (void);