From patchwork Mon Feb 29 16:49:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Schmidt X-Patchwork-Id: 590052 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 ABA3D1402BC for ; Tue, 1 Mar 2016 03:50:23 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=n6o6nG6H; 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 :subject:from:to:cc:content-type:date:message-id:mime-version :content-transfer-encoding; q=dns; s=default; b=wHftN75pu6JrXfpj 1GK03IOBUoHjwH1O+NMHtrGM+tlxWz2U21YKngyKketWWv4u4c4C5Fd500nvEcEs JESXAnzw5vEBYIzYqkndKqlv6grJkyS3UcvXHH7TIKIuE/9L0k+MfpxptC0LWjRo Y1t/g1qmr21lKRGc8jda9e2sGrY= 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 :subject:from:to:cc:content-type:date:message-id:mime-version :content-transfer-encoding; s=default; bh=8P2xdprmNxxUxKLme7YptJ Aq+Cg=; b=n6o6nG6HNk/WQvzt4nkW9AYd/cwtWH+4dcNU57QrcFX928V2IgjPEW 2LgrM902zqp0nxwmZFe2S/Ds3o0aUFaW02U9M1zEyY+6atrVmCeqB3Y+E6A3GoW/ /qcRcaMfnNcEIdg2ESpip3dR7kqevB0th7BWvShmzHCsTVqUopTIU= 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-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 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 Date: Mon, 29 Feb 2016 10:49:37 -0600 Message-ID: <1456764577.8013.8.camel@oc8801110288.ibm.com> Mime-Version: 1.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16022916-0013-0000-0000-00001D54658C X-IsSubscribed: yes 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 } } } } */