From patchwork Fri Jan 17 14:13:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 312077 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 1FF772C0098 for ; Sat, 18 Jan 2014 01:13:49 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; q=dns; s=default; b=I7ddfrCtIePljp+bna9yengCn0qUQ woOKG2DnPtvo97ZZmR5LwHTNC+dLIXUoYQCFclUX4aFKAT5Tu+Rg3Fej0R2/3mCb Itd00j9Xu4nUVz81QYgF8Y1CS3GQz/Qd58ZVSWlQsVWuS7l5Hp3+sYgqPAF7jtJx eTXymu5Tv8WQHg= 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:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; s=default; bh=gfOgZtMFLqqYHBnD9xEDIAFwkss=; b=g9l GlEOuprZSFx+jCiUyYp7+x8bjXNLkf4nmUuV46eqzqFjxWGGYKlko5QbzjyH+M7w rggR1LTQAh6f8jQjMgPhNO2vmdCEDWuDh/JXzesox2hhxkypQK03PJLst2RCnQSe p3j76r3dkpE8aqgJ7LIsUJ+EKUmPDFQ1AECqHbFw= Received: (qmail 16504 invoked by alias); 17 Jan 2014 14:13:43 -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 16494 invoked by uid 89); 17 Jan 2014 14:13:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 Jan 2014 14:13:41 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0HEDao3015536 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 17 Jan 2014 09:13:37 -0500 Received: from tucnak.zalov.cz (vpn1-7-114.ams2.redhat.com [10.36.7.114]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s0HEDZ76000842 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 17 Jan 2014 09:13:36 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.14.7/8.14.7) with ESMTP id s0HEDYI5028842; Fri, 17 Jan 2014 15:13:34 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.14.7/8.14.7/Submit) id s0HEDYO6028839; Fri, 17 Jan 2014 15:13:34 +0100 Date: Fri, 17 Jan 2014 15:13:34 +0100 From: Jakub Jelinek To: Richard Biener , Rainer Orth Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix up gen-vect-32.c testcase (PR testsuite/58776) Message-ID: <20140117141333.GF892@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 Hi! For -O2 vectorization by default GCC 4.9 uses the cheap cost model, which disallows e.g. peeling for alignment, but on strict alignment targets the loop needs to be peeled for alignment, otherwise vectorization isn't performed. Fixed by just adding -fno-vect-cost-model to dg-options, bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2014-01-17 Jakub Jelinek PR testsuite/58776 * gcc.dg/tree-ssa-gen-vect-32.c: Add -fno-vect-cost-model to dg-options, use dg-additional-options for i?86/x86_64 to avoid option duplication. Jakub --- gcc/testsuite/gcc.dg/tree-ssa/gen-vect-32.c.jj 2012-10-03 09:01:35.000000000 +0200 +++ gcc/testsuite/gcc.dg/tree-ssa/gen-vect-32.c 2014-01-17 11:03:27.039224079 +0100 @@ -1,6 +1,6 @@ /* { dg-do run { target vect_cmdline_needed } } */ -/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details" } */ -/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details -mno-sse" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details -fno-vect-cost-model" } */ +/* { dg-additional-options "-mno-sse" { target { i?86-*-* x86_64-*-* } } } */ #include