From patchwork Thu Aug 27 18:35:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Schmidt X-Patchwork-Id: 511391 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 791FF14016A for ; Fri, 28 Aug 2015 04:35:22 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=uzpShf2L; 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=UOf5KPLI03DwzNet uJqMnUBiApRpPL+gcNBLK9shs+orrb90P4U1r1aV9Z4bJXF69ul6HcP1was1RkQf RnW5oiR7UZIgTjT9joz2sV8ZLJI87bvXU47FWSumr+kOaF4mKeyZZCdTVAjCJNEt 8lxXxIxfpQYm6wHMwqnOfkc6MFg= 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=aIoiGi0qDaJesMpHtmLGOC hPhqM=; b=uzpShf2LUO7TVjqM2+EnCc3dvKLJl3ycmxB9QUpOFomj+rcPNEFCfn Sf9pRt0BdN/R+mjP7YxRVL2MNrDgaMTZqKN+boJn8GGwW+u0gBGj+dIkS1JaLfj8 Ty6e3GiwDOU5+IjhT/b96zOnQKSSxpS7+6BiG2ZXVWYd4sP8T0TS4= Received: (qmail 83718 invoked by alias); 27 Aug 2015 18:35:16 -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 83709 invoked by uid 89); 27 Aug 2015 18:35:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, KAM_ASCII_DIVIDERS, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: e34.co.us.ibm.com Received: from e34.co.us.ibm.com (HELO e34.co.us.ibm.com) (32.97.110.152) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Thu, 27 Aug 2015 18:35:15 +0000 Received: from /spool/local by e34.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 27 Aug 2015 12:35:11 -0600 Received: from d03dlp01.boulder.ibm.com (9.17.202.177) by e34.co.us.ibm.com (192.168.1.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 27 Aug 2015 12:35:10 -0600 X-MailFrom: wschmidt@linux.vnet.ibm.com X-RcptTo: gcc-patches@gcc.gnu.org Received: from b03cxnp07029.gho.boulder.ibm.com (b03cxnp07029.gho.boulder.ibm.com [9.17.130.16]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id ED1361FF002D for ; Thu, 27 Aug 2015 12:26:18 -0600 (MDT) Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t7RIZ9Hv51511334 for ; Thu, 27 Aug 2015 11:35:09 -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 t7RIZ8Pk007729 for ; Thu, 27 Aug 2015 12:35:08 -0600 Received: from [9.10.86.150] (oc8801110288.ibm.com.rchland.ibm.com [9.10.86.150] (may be forged)) by d03av04.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t7RIZ70c007640; Thu, 27 Aug 2015 12:35:07 -0600 Subject: [PATCH, testsuite] Enable vect_double for PowerPC targets with VSX support From: Bill Schmidt To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, mikestump@comcast.net Date: Thu, 27 Aug 2015 13:35:07 -0500 Message-ID: <1440700507.4911.14.camel@oc8801110288.ibm.com> Mime-Version: 1.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15082718-0017-0000-0000-00000D68A420 X-IsSubscribed: yes Hi, I observed today that { dg-require-effective-target vect_double } was unintentionally excluding all powerpc* targets. This patch corrects the situation by enabling vect_double when the VSX architectural support is present, which provides the vector double type. As a result of this change, I observed one XPASS. This is due to vect_no_align being used where { vect_no_align && { ! vect_hw_misalign } } is actually desired. (I made a number of similar changes back in April, but didn't catch this one at the time.) Tested on powerpc64-unknown-linux-gnu and powerpc64le-unknown-linux-gnu with no regressions. Is this ok for trunk? Thanks, Bill 2015-08-27 Bill Schmidt * lib/target-supports.exp (check-effective_target_vect_double): Enable for Power targets with VSX hardware available. * gfortran.dg/vect/O3-pr49957.f: Replace vect_no_align with vect_no_align && { ! vect_hw_misalign }. Index: gcc/testsuite/gfortran.dg/vect/O3-pr49957.f =================================================================== --- gcc/testsuite/gfortran.dg/vect/O3-pr49957.f (revision 227258) +++ gcc/testsuite/gfortran.dg/vect/O3-pr49957.f (working copy) @@ -13,4 +13,4 @@ enddo return end -! { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { xfail vect_no_align } } } +! { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { xfail { vect_no_align && { ! vect_hw_misalign } } } } } Index: gcc/testsuite/lib/target-supports.exp =================================================================== --- gcc/testsuite/lib/target-supports.exp (revision 227258) +++ gcc/testsuite/lib/target-supports.exp (working copy) @@ -3711,6 +3711,8 @@ proc check_effective_target_vect_double { } { } } elseif { [istarget spu-*-*] } { set et_vect_double_saved 1 + } elseif { [istarget powerpc*-*-*] && [check_vsx_hw_available] } { + set et_vect_double_saved 1 } }