From patchwork Wed May 11 19:45:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bill Schmidt X-Patchwork-Id: 621239 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 3r4mpW66cvz9sDb for ; Thu, 12 May 2016 05:46:42 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=RWvDuRCo; 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:from :content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version; q=dns; s=default; b=Ixoz8agzBPxav8kVHqh1e80 YZyivqdydTEeh0LzQkwVoHZbc0NiBvWq08OxL/Kk34eweIrJ5wSoGOhQTO59yLlG l0Ycx0rj2p/fyE4cVBsZmJJTG2kEN/73i2Rq/+5loYCcU7GeWVjJzyCVh0yz92l4 yMhFfh5Hb1yc/ieK4rYc= 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:from :content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version; s=default; bh=slqa1JKyAOQbol1JZzF+OjVlQVk=; b= RWvDuRCoa1UXiyFL/EF7ugUsg1qSkUEhoWMLdbrXTW28aot2dX6VMr8AwhHgkdqb 6XyrMAg4FDJfj22Q8YXaAiqxFVFhu75p3MO/OnhAZr7HFrBAoUXZ5xTE1Kab+EkN jOPWT6iiT/v2TrlfjfwNcI/FozXSzOu6qUg7hyHl2BE= Received: (qmail 58736 invoked by alias); 11 May 2016 19:46:30 -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 57474 invoked by uid 89); 11 May 2016 19:46:29 -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, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=remedies, Require, deploying X-HELO: e38.co.us.ibm.com Received: from e38.co.us.ibm.com (HELO e38.co.us.ibm.com) (32.97.110.159) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Wed, 11 May 2016 19:46:27 +0000 Received: from localhost by e38.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 11 May 2016 13:46:25 -0600 Received: from d03dlp03.boulder.ibm.com (9.17.202.179) by e38.co.us.ibm.com (192.168.1.138) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 11 May 2016 13:46:23 -0600 X-IBM-Helo: d03dlp03.boulder.ibm.com X-IBM-MailFrom: wschmidt@linux.vnet.ibm.com X-IBM-RcptTo: gcc-patches@gcc.gnu.org; dje.gcc@gmail.com; segher@kernel.crashing.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 0926919D803F; Wed, 11 May 2016 13:46:06 -0600 (MDT) Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u4BJkMxC46465064; Wed, 11 May 2016 12:46:22 -0700 Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BDFCF78038; Wed, 11 May 2016 13:46:22 -0600 (MDT) Received: from [9.80.237.154] (unknown [9.80.237.154]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTPS id 31A837803F; Wed, 11 May 2016 13:46:22 -0600 (MDT) From: Bill Schmidt Subject: [PATCH, rs6000] Fix pr70963.c test case for older hardware Date: Wed, 11 May 2016 14:45:32 -0500 Message-Id: <374F2CC9-BE5B-4948-8916-E67FC37E8E19@linux.vnet.ibm.com> Cc: Segher Boessenkool , David Edelsohn To: gcc-patches@gcc.gnu.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16051119-0029-0000-0000-0000284D660F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused X-IsSubscribed: yes Hi, When fixing PR70963, I introduced a test case that didn’t sufficiently constrain the target architecture. Although the built-ins I was testing are available on any platform supporting VSX, the use of vec_all_eq for vector double and vector long long requires at least a POWER8 target. This patch remedies this by ensuring the test will not run unless p8vector support is available. Verified on powerpc64-unknown-linux-gnu and powerpc64le-unknown-linux-gnu. Is this ok for trunk? I will wait a bit longer before deploying to earlier releases… Thanks, Bill 2016-05-11 Bill Schmidt * gcc.target/powerpc/pr70963.c: Require at least power8 at both compile and run time. Index: gcc/testsuite/gcc.target/powerpc/pr70963.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/pr70963.c (revision 236082) +++ gcc/testsuite/gcc.target/powerpc/pr70963.c (working copy) @@ -1,7 +1,8 @@ -/* { dg-do run { target { powerpc64*-*-* && vsx_hw } } } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ +/* { dg-do run { target powerpc64*-*-* } } */ +/* { dg-require-effective-target p8vector_hw } */ /* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */ -/* { dg-options "-maltivec" } */ +/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */ +/* { dg-options "-mcpu=power8" } */ #include #include