From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64173 invoked by alias); 29 Feb 2016 16:50:14 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 64162 invoked by uid 89); 29 Feb 2016 16:50:13 -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=355, Hx-languages-length:1781 X-HELO: e35.co.us.ibm.com Received: from e35.co.us.ibm.com (HELO e35.co.us.ibm.com) (32.97.110.153) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Mon, 29 Feb 2016 16:50:12 +0000 Received: from localhost by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 29 Feb 2016 09:50:09 -0700 Received: from d03dlp03.boulder.ibm.com (9.17.202.179) by e35.co.us.ibm.com (192.168.1.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 29 Feb 2016 09:49:43 -0700 X-IBM-Helo: d03dlp03.boulder.ibm.com X-IBM-MailFrom: wschmidt@linux.vnet.ibm.com X-IBM-RcptTo: gcc-patches@gcc.gnu.org Received: from b03cxnp07028.gho.boulder.ibm.com (b03cxnp07028.gho.boulder.ibm.com [9.17.130.15]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id 2120F19D8041 for ; Mon, 29 Feb 2016 09:37:39 -0700 (MST) Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u1TGngos44236920 for ; Mon, 29 Feb 2016 09:49:42 -0700 Received: from d03av03.boulder.ibm.com (localhost [127.0.0.1]) by d03av03.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u1TGnfcD016656 for ; Mon, 29 Feb 2016 09:49:41 -0700 Received: from [9.77.128.213] (sig-9-77-128-213.ibm.com [9.77.128.213]) by d03av03.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id u1TGnct3016331; Mon, 29 Feb 2016 09:49:39 -0700 Subject: [PATCH] Fix PR70011 (backlevel test case) From: Bill Schmidt To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com Content-Type: text/plain; charset="UTF-8" Date: Mon, 29 Feb 2016 16:50:00 -0000 Message-ID: <1456764577.8013.8.camel@oc8801110288.ibm.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16022916-0013-0000-0000-00001D54658C X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg01962.txt.bz2 Hi, PR70011 identifies an old vectorization test that recently started failing on GCC 6 with POWER8 hardware. This "failure" is that we now find vectorization of the test case to be profitable, where it didn't used to be. A combination of two factors allowed this to become profitable here: First, the POWER8 feature that unaligned vector accesses are supported by hardware; and second, some improvement in the vectorizer itself (vect_recog_mult_pattern now kicks in). The proposed fix herein is to XFAIL the test for vectorization failure for POWER subtargets that support efficient unaligned vector accesses. Since this also requires the vectorization improvement that only occurs in GCC 6, it makes sense to only make this change on trunk. I've verified the modified test on powerpc64le-unknown-linux-gnu (POWER8) and on powerpc64-unknown-linux-gnu (both POWER7 and POWER8) and everything works as expected. Is this ok for trunk? Thanks, Bill 2016-02-29 Bill Schmidt PR target/70011 * gcc.dg/vect/costmodel/ppc/costmodel-fast-math-vect-pr299925.c: XFAIL when hardware supports efficient unaligned storage access. Index: gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-fast-math-vect-pr29925.c =================================================================== --- gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-fast-math-vect-pr29925.c (revision 233813) +++ gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-fast-math-vect-pr29925.c (working copy) @@ -35,5 +35,5 @@ int main() return 0; } -/* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" } } */ +/* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" { xfail { vect_hw_misalign } } } } */