From patchwork Fri Oct 18 03:33:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 284400 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 did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id BFF622C0087 for ; Fri, 18 Oct 2013 14:33:56 +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 :message-id:from:to:subject:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=EcO/gh3vl2wEGd53 uwfpDVjNbecUbHDzgWurle26HSh002XlcTDxRwiLz5l1seUOTWtegZV5PG238chm lYllhwAG5Ny5F2x28nOonU8v6XNCPLs9FmzWgf3a4EfMbf1hOfAzuFMQ19wsgV7T v4GDLjPIKriYJZKeyGijnsIeaiA= 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 :message-id:from:to:subject:mime-version:content-type :content-transfer-encoding; s=default; bh=4EDKF8lCGwHqYHQXRgzg+k AKL08=; b=Ve5wMbRhucxspCkYXzPSgfT/amKe7JAXSK/Lvo035RAqxQOK+gkNK+ lp43JCMTJ7efLFl+EWCy8VJJOGx/nTxrwi9esYzsDu8FSA17jS07yLk8j7q27p8I r0hXSoFCu13glF4DxnmjDaGHiMXYAJXVa0plIo/3HfQtD6DX/E+Es= Received: (qmail 4253 invoked by alias); 18 Oct 2013 03:33:49 -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 4234 invoked by uid 89); 18 Oct 2013 03:33:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: anubis.se.axis.com Received: from anubis.se.axis.com (HELO anubis.se.axis.com) (195.60.68.12) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Oct 2013 03:33:48 +0000 Received: from localhost (localhost [127.0.0.1]) by anubis.se.axis.com (Postfix) with ESMTP id D7C1B19EB7 for ; Fri, 18 Oct 2013 05:33:45 +0200 (CEST) Received: from anubis.se.axis.com ([127.0.0.1]) by localhost (anubis.se.axis.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EFA0PNO2QukS for ; Fri, 18 Oct 2013 05:33:44 +0200 (CEST) Received: from boulder.se.axis.com (boulder.se.axis.com [10.0.2.104]) by anubis.se.axis.com (Postfix) with ESMTP id D583C19DE0 for ; Fri, 18 Oct 2013 05:33:44 +0200 (CEST) Received: from boulder.se.axis.com (localhost [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id BE83D9B2 for ; Fri, 18 Oct 2013 05:33:44 +0200 (CEST) Received: from seth.se.axis.com (seth.se.axis.com [10.0.2.172]) by boulder.se.axis.com (Postfix) with ESMTP id B3763219 for ; Fri, 18 Oct 2013 05:33:44 +0200 (CEST) Received: from ignucius.se.axis.com (ignucius.se.axis.com [10.88.21.50]) by seth.se.axis.com (Postfix) with ESMTP id B17B73E06F; Fri, 18 Oct 2013 05:33:44 +0200 (CEST) Received: from ignucius.se.axis.com (localhost [127.0.0.1]) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) with ESMTP id r9I3XiY2023396; Fri, 18 Oct 2013 05:33:44 +0200 Received: (from hp@localhost) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) id r9I3Xil2023392; Fri, 18 Oct 2013 05:33:44 +0200 Date: Fri, 18 Oct 2013 05:33:44 +0200 Message-Id: <201310180333.r9I3Xil2023392@ignucius.se.axis.com> From: Hans-Peter Nilsson To: gcc-patches@gcc.gnu.org Subject: Committed: fix more testsuite fallout from "cost model patch". MIME-Version: 1.0 For cris-elf (no SIMD), the following tests regressed just as for the similar tests mentioned in PR58556. These apparently don't fail for the targets mentioned there for some reason, but I see in the mail thread with the quoted subject there was no conscious adjustment to the test-suite. Thus I believe arbitrary per-target fallout is to be expected. Copying the adjustments from commit r203057, I committed the following as obvious, after checking that the tests still pass on x86_64-linux-gnu. There's also gen-vect-32.c that didn't vectorize but the adjustment below didn't help and I don't see why that 16-char loop shouldn't be "vectorized" to 4 32-bit moves (assuming that's the intended optimization), so I'll open a PR for that. gcc/testsuite: * gcc.dg/tree-ssa/gen-vect-11.c: Use dynamic vector cost model. gcc.dg/tree-ssa/gen-vect-11a.c: Likewise. gcc.dg/tree-ssa/gen-vect-2.c: Likewise. gcc.dg/tree-ssa/gen-vect-25.c: Likewise. brgds, H-P Index: gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11.c =================================================================== --- gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11.c (revision 203638) +++ gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11.c (working copy) @@ -1,6 +1,6 @@ /* { dg-do run { target vect_cmdline_needed } } */ -/* { dg-options "-O2 -ftree-vectorize -fwrapv -fdump-tree-vect-details" } */ -/* { dg-options "-O2 -ftree-vectorize -fwrapv -fdump-tree-vect-details -mno-sse" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-options "-O2 -ftree-vectorize -fwrapv -fdump-tree-vect-details -fvect-cost-model=dynamic" } */ +/* { dg-options "-O2 -ftree-vectorize -fwrapv -fdump-tree-vect-details -fvect-cost-model=dynamic -mno-sse" { target { i?86-*-* x86_64-*-* } } } */ #include Index: gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c =================================================================== --- gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c (revision 203638) +++ gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c (working copy) @@ -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 -fvect-cost-model=dynamic" } */ +/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details -fvect-cost-model=dynamic -mno-sse" { target { i?86-*-* x86_64-*-* } } } */ #include Index: gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c =================================================================== --- gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c (revision 203638) +++ gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c (working copy) @@ -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 -fvect-cost-model=dynamic" } */ +/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details -fvect-cost-model=dynamic -mno-sse" { target { i?86-*-* x86_64-*-* } } } */ #include Index: gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c =================================================================== --- gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c (revision 203638) +++ gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c (working copy) @@ -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 -fvect-cost-model=dynamic" } */ +/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details -fvect-cost-model=dynamic -mno-sse" { target { i?86-*-* x86_64-*-* } } } */ #include