From patchwork Thu May 30 03:54:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Schmidt X-Patchwork-Id: 1107519 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-501933-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="yonBcEV+"; dkim-atps=neutral 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 45Dtyb33jFz9sSQ for ; Thu, 30 May 2019 13:55:14 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:date:mime-version:message-id:content-type :content-transfer-encoding; q=dns; s=default; b=w0hxdMDMgaXijW0Q 4cgXbu76z0ceu+HScVWIKVRoas2yAcc2GBb4dWBRZcfUsW8iGCN101rTNO3yowgt aORAQmDzIw/JDpUxKrjlCw5Nq3/h3PEXM/0R6ILHJHkusKQyPMY82GXOoNOyn4rC KNcq/8RYrfgWyHF4z4Atj974QoU= 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:to:cc :from:subject:date:mime-version:message-id:content-type :content-transfer-encoding; s=default; bh=Ze1KNgh+fv/nxFi0xFGNzI 4kmGg=; b=yonBcEV+1o/wK6DN/ueArMYJKIRb/1eO5Yq0E8DRkhBLOrnuQR+EYJ BtdFBwm4rksdF93YVHeGSKLrNOALDNfzphOBEPsOwQkKHbg6S06Q0BajFfnyD1fy k/56Ai/2ynl40uidvRBmPcpijTkc15IH09FhFaiXi91fRb+8OWrZE= Received: (qmail 84342 invoked by alias); 30 May 2019 03:55:07 -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 84327 invoked by uid 89); 30 May 2019 03:55:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, HTML_MESSAGE, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.1 spammy=H*c:alternative X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 30 May 2019 03:55:05 +0000 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4U3lYuF073120 for ; Wed, 29 May 2019 23:55:03 -0400 Received: from e14.ny.us.ibm.com (e14.ny.us.ibm.com [129.33.205.204]) by mx0b-001b2d01.pphosted.com with ESMTP id 2st5h6cgxn-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 29 May 2019 23:55:03 -0400 Received: from localhost by e14.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 30 May 2019 04:55:02 +0100 Received: from b01cxnp22035.gho.pok.ibm.com (9.57.198.25) by e14.ny.us.ibm.com (146.89.104.201) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 30 May 2019 04:55:00 +0100 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x4U3sxEh21430480 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 30 May 2019 03:54:59 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1828BAC05F; Thu, 30 May 2019 03:54:59 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C05E9AC059; Thu, 30 May 2019 03:54:58 +0000 (GMT) Received: from BigMac.local (unknown [9.85.143.85]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Thu, 30 May 2019 03:54:58 +0000 (GMT) To: GCC Patches Cc: Segher Boessenkool From: Bill Schmidt Subject: [PATCH] rs6000: Update test cases to use powerpc_future_ok Date: Wed, 29 May 2019 22:54:58 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 x-cbid: 19053003-0052-0000-0000-000003C8D875 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00011182; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000286; SDB=6.01210563; UDB=6.00636025; IPR=6.00991598; MB=3.00027112; MTD=3.00000008; XFM=3.00000015; UTC=2019-05-30 03:55:01 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19053003-0053-0000-0000-00006118BC39 Message-Id: <91bdc4aa-2b7b-4296-9571-a11c61acf169@linux.ibm.com> Hi, This patch updates test cases to use the new powerpc_future_ok effective target. Tested on powerpc64le-unknown-linux-gnu with no problems. Is this okay for trunk? Thanks, Bill 2019-05-29 Bill Schmidt Michael Meissner * gcc.target/powerpc/cpu-future.c: Require powerpc_future_ok. * gcc.target/powerpc/localentry-1.c: Likewise. * gcc.target/powerpc/localentry-direct-1.c: Likewise. * gcc.target/powerpc/notoc-direct-1.c: Likewise. * gcc.target/powerpc/pcrel-sibcall-1.c: Likewise. diff --git a/gcc/testsuite/gcc.target/powerpc/cpu-future.c b/gcc/testsuite/gcc.target/powerpc/cpu-future.c index d0725867ffa..ae406d08b23 100644 --- a/gcc/testsuite/gcc.target/powerpc/cpu-future.c +++ b/gcc/testsuite/gcc.target/powerpc/cpu-future.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target powerpc_future_ok } */ /* { dg-options "-mdejagnu-cpu=future -O2" } */ /* Ensure -mcpu=future compiles cleanly. */ diff --git a/gcc/testsuite/gcc.target/powerpc/localentry-1.c b/gcc/testsuite/gcc.target/powerpc/localentry-1.c index ce687a7f6ec..dc4867d0a3c 100644 --- a/gcc/testsuite/gcc.target/powerpc/localentry-1.c +++ b/gcc/testsuite/gcc.target/powerpc/localentry-1.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-mdejagnu-cpu=future -O2" } */ /* { dg-require-effective-target powerpc_elfv2 } */ +/* { dg-require-effective-target powerpc_future_ok } */ /* Ensure we generate ".localentry fn,1" for both leaf and non-leaf functions. */ diff --git a/gcc/testsuite/gcc.target/powerpc/localentry-detect-1.c b/gcc/testsuite/gcc.target/powerpc/localentry-detect-1.c index db20aedeb71..70b18ff0aca 100644 --- a/gcc/testsuite/gcc.target/powerpc/localentry-detect-1.c +++ b/gcc/testsuite/gcc.target/powerpc/localentry-detect-1.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-require-effective-target powerpc_elfv2 } */ +/* { dg-require-effective-target powerpc_future_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=future" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/notoc-direct-1.c b/gcc/testsuite/gcc.target/powerpc/notoc-direct-1.c index 31497261ddf..0917f307e65 100644 --- a/gcc/testsuite/gcc.target/powerpc/notoc-direct-1.c +++ b/gcc/testsuite/gcc.target/powerpc/notoc-direct-1.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-mdejagnu-cpu=future -O2" } */ /* { dg-require-effective-target powerpc_elfv2 } */ +/* { dg-require-effective-target powerpc_future_ok } */ /* Test that calls generated from PC-relative code are annotated with @notoc. */ diff --git a/gcc/testsuite/gcc.target/powerpc/pcrel-sibcall-1.c b/gcc/testsuite/gcc.target/powerpc/pcrel-sibcall-1.c index 7c767e2ba32..bd7a0a9bcda 100644 --- a/gcc/testsuite/gcc.target/powerpc/pcrel-sibcall-1.c +++ b/gcc/testsuite/gcc.target/powerpc/pcrel-sibcall-1.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-mdejagnu-cpu=future -O2" } */ /* { dg-require-effective-target powerpc_elfv2 } */ +/* { dg-require-effective-target powerpc_future_ok } */ /* Test that potential sibcalls are not generated when the caller preserves the TOC and the callee doesn't, or vice versa. */