From patchwork Thu Jan 28 17:45:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Schmidt X-Patchwork-Id: 574816 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 83EC3140BD0 for ; Fri, 29 Jan 2016 04:45:58 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=IsNEQhNJ; 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:subject:from:to:cc:date:content-type:mime-version :content-transfer-encoding; q=dns; s=default; b=uBak8s9WYoC1qU3c ZMRrt73XFVzIR74G543tf9TlkJweE6r39MJ9C5iC7gggeNFnamqUz3oxeBmg8dCP sUSe0ZC+P+uEGluMAjkaSjl+3ZfjsJyO/8ZvSNMYMB2eQ0NSw0RnO1oLkU2v8qCq zzbhJuDmgg+sQ1j3oocUfLGgnIA= 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:subject:from:to:cc:date:content-type:mime-version :content-transfer-encoding; s=default; bh=s8h/SnzLd0aS3Y7xP5dSew FCBRw=; b=IsNEQhNJowO2HA+9jERoTc/T7j3w2b4oCaJ40efimW5GxOXwyv1ig0 IYu7d03pIZkCwPvRjkqTP98Jf0tknu0OR29y0gqtevqWG3NE9mwb8o9DSpZOYGYr 5UlA/5VaK45X4rLKyii3CWgYtf7zH34oNIXCVzRC60YAKyD7G97dU= Received: (qmail 32263 invoked by alias); 28 Jan 2016 17:45:45 -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 32172 invoked by uid 89); 28 Jan 2016 17:45:44 -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= X-HELO: e37.co.us.ibm.com Received: from e37.co.us.ibm.com (HELO e37.co.us.ibm.com) (32.97.110.158) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Thu, 28 Jan 2016 17:45:43 +0000 Received: from localhost by e37.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 28 Jan 2016 10:45:40 -0700 Received: from d03dlp01.boulder.ibm.com (9.17.202.177) by e37.co.us.ibm.com (192.168.1.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 28 Jan 2016 10:45:40 -0700 X-IBM-Helo: d03dlp01.boulder.ibm.com X-IBM-MailFrom: wschmidt@linux.vnet.ibm.com X-IBM-RcptTo: gcc-patches@gcc.gnu.org Received: from b03cxnp08026.gho.boulder.ibm.com (b03cxnp08026.gho.boulder.ibm.com [9.17.130.18]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id A899F1FF0059 for ; Thu, 28 Jan 2016 10:33:49 -0700 (MST) Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u0SHjd4823330838 for ; Thu, 28 Jan 2016 10:45:39 -0700 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u0SHjdTQ012297 for ; Thu, 28 Jan 2016 10:45:39 -0700 Received: from [9.48.100.47] (sig-9-48-100-47.ibm.com [9.48.100.47]) by d03av04.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id u0SHjcjO012225; Thu, 28 Jan 2016 10:45:39 -0700 Message-ID: <1454003138.18841.4.camel@gnopaine> Subject: [PATCH, rs6000] Partial fix for PR65546 (GCC 6) From: Bill Schmidt To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com Date: Thu, 28 Jan 2016 11:45:38 -0600 Mime-Version: 1.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16012817-0025-0000-0000-000020D55521 X-IsSubscribed: yes Hi, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65546 discusses the failure of gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c. The test fails differently on GCC 4.9 and 5 than it does on GCC 6. For GCC 6, the test case is faulty, as we only expect to see the "vectorization not profitable" statement when misaligned loads/stores are not efficient on the target hardware. This patch fixes the test for GCC 6. Something else is going on in the earlier releases, which I plan to look at separately. Verified on powerpc64le-unknown-linux-gnu. Is this okay for trunk? Thanks, Bill 2016-01-28 Bill Schmidt PR target/65546 * gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c: Disable check for "vectorization not profitable" when the target supports misaligned loads and stores. Index: gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c =================================================================== --- gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c (revision 232890) +++ gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c (working copy) @@ -46,5 +46,5 @@ int main (void) return main1 (); } -/* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" } } */ +/* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" { target { ! vect_hw_misalign } } } } */ /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" { target { ! vect_hw_misalign } } } } */