From patchwork Tue Mar 1 21:28:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Meissner X-Patchwork-Id: 590732 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 4D5FC140CF6 for ; Wed, 2 Mar 2016 08:29:03 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=vzTXUqVS; 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:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=Cq+R01LMQYz+mmRWqDgE4N6UKK4H6rOcqxjAVs3RBDK2GXm8VvwFg //fsAZQwYqaP1d642W+Ps5Xu/p0Wsm9ushNhUY6+0jyvJy+MoPxFl7x2kcp6AuCN tLfsOa1TJMl94f9503UiM+HUov6yVgg+Nu8Hb20gMpkl/hxOK93u4c= 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:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=HQ3Uc3Zpb7V2r13DoEa94Mj1ntw=; b=vzTXUqVSexjMjFbsIhk1 5CV7hLCI/rSPtBc+NnlnDw2/OCgCNvHvQFjTwhN0Ojvyzjc10m5AbpZcbyzuTfkV 3YYz7r/78xDpzpDsshcIj9+pLkOd/YegK63BXOfBQwEarTiowmrHgBK+Z0sk4DoX KxSEAULSyewM9y3R9bYXbxA= Received: (qmail 68011 invoked by alias); 1 Mar 2016 21:28:56 -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 68000 invoked by uid 89); 1 Mar 2016 21:28:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL, BAYES_00, KAM_ASCII_DIVIDERS, KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*u:1.5.20, H*UA:1.5.20, 978, H*UA:2009-12-10 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; Tue, 01 Mar 2016 21:28:55 +0000 Received: from localhost by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 1 Mar 2016 14:28:53 -0700 Received: from d03dlp02.boulder.ibm.com (9.17.202.178) by e35.co.us.ibm.com (192.168.1.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 1 Mar 2016 14:28:52 -0700 X-IBM-Helo: d03dlp02.boulder.ibm.com X-IBM-MailFrom: meissner@ibm-tiger.the-meissners.org 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 d03dlp02.boulder.ibm.com (Postfix) with ESMTP id ED1413E4003F for ; Tue, 1 Mar 2016 14:28:51 -0700 (MST) Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u21LSph041156630 for ; Tue, 1 Mar 2016 14:28:51 -0700 Received: from d03av02.boulder.ibm.com (localhost [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u21LSpLb024223 for ; Tue, 1 Mar 2016 14:28:51 -0700 Received: from ibm-tiger.the-meissners.org (dhcp-9-32-77-111.usma.ibm.com [9.32.77.111]) by d03av02.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id u21LSoeM024210; Tue, 1 Mar 2016 14:28:51 -0700 Received: by ibm-tiger.the-meissners.org (Postfix, from userid 500) id 8FF9E43A1B; Tue, 1 Mar 2016 16:28:50 -0500 (EST) Date: Tue, 1 Mar 2016 16:28:50 -0500 From: Michael Meissner To: gcc-patches@gcc.gnu.org, dje.gcc@gmail.com Subject: [PATCH], Make Power9 tests check if compiler supports power9 Message-ID: <20160301212849.GA19975@ibm-tiger.the-meissners.org> Mail-Followup-To: Michael Meissner , gcc-patches@gcc.gnu.org, dje.gcc@gmail.com MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16030121-0013-0000-0000-00001D611011 X-IsSubscribed: yes I noticed that several of the power9 tests do not check if the power9 support was built into the compiler. This patch fixes this. I'm going to apply these patches as being obvious. 2016-03-01 Michael Meissner PR target/70033 * gcc.target/powerpc/p9-lxvx-stxvx-1.c: Make sure compiler supports power9 before doing tests. * gcc.target/powerpc/p9-lxvx-stxvx-2.c: Likewise. * gcc.target/powerpc/p9-lxvx-stxvx-3.c: Likewise. * gcc.target/powerpc/p9-permute.c: Likewise. Index: gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-1.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-1.c (revision 233835) +++ gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-1.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile { target { powerpc64le-*-* } } } */ /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */ +/* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mcpu=power9 -O3" } */ /* { dg-final { scan-assembler "lxvx" } } */ /* { dg-final { scan-assembler "stxvx" } } */ Index: gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-2.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-2.c (revision 233835) +++ gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-2.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile { target { powerpc64le-*-* } } } */ /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */ +/* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mcpu=power9 -O1" } */ /* { dg-final { scan-assembler "lxvx" } } */ /* { dg-final { scan-assembler "stvewx" } } */ Index: gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-3.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-3.c (revision 233835) +++ gcc/testsuite/gcc.target/powerpc/p9-lxvx-stxvx-3.c (working copy) @@ -1,6 +1,7 @@ /* { dg-do compile { target { powerpc64le-*-* } } } */ /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */ /* { dg-options "-mcpu=power9 -O3" } */ +/* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-final { scan-assembler "lxvx" } } */ /* { dg-final { scan-assembler "stxvx" } } */ /* { dg-final { scan-assembler-not "lxvd2x" } } */ Index: gcc/testsuite/gcc.target/powerpc/p9-permute.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/p9-permute.c (revision 233835) +++ gcc/testsuite/gcc.target/powerpc/p9-permute.c (working copy) @@ -1,6 +1,7 @@ /* { dg-do compile { target { powerpc64le-*-* } } } */ /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */ /* { dg-options "-mcpu=power9 -O2" } */ +/* { dg-require-effective-target powerpc_p9vector_ok } */ #include