From patchwork Tue Dec 20 17:26:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pat Haugen X-Patchwork-Id: 707521 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 3tjl7k1GsDz9t8j for ; Wed, 21 Dec 2016 04:26:25 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="rCzLybZy"; 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 :subject:to:cc:date:mime-version:content-type:message-id; q=dns; s=default; b=EjEocjrxo4kCxYC2CbNjTGHCfLY4g2VD4hgUnC53Xq2y3A+J1S rfDX6fKNc+muase0q+c8GU6WyxCWb35l4TnUTYl5aoOs5v5CL8xEwJ7kqR9dTAs6 T4y/3rNyiM+qhrCgswWvPVmAGt9cH4ZIiBuLku+rwJFCZ+rMRmCppiR6c= 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 :subject:to:cc:date:mime-version:content-type:message-id; s= default; bh=K/5QPtdfqhOJYaiXOHrO2JBCTMs=; b=rCzLybZyM8MBKxs49MRB G4Y/NlklYhcq+8pX86Xk29lgcTWovJsOx91bBQP5UvyV8cbif+FPRV0PCoFVGIiM a9F7uTEaNHe0Y7hA6isUHwPrOe5yt0AQ4ZUEPxdgft/BvA9PPtm00BiI7XL+U0ea dnsJgunmGo8g3qrdS9o6kw8= Received: (qmail 26749 invoked by alias); 20 Dec 2016 17:26:13 -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 26737 invoked by uid 89); 20 Dec 2016 17:26:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=BAYES_00, KAM_ASCII_DIVIDERS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=initiation, U*pthaugen, sk:pthauge 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; Tue, 20 Dec 2016 17:26:10 +0000 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uBKHJgTs023304 for ; Tue, 20 Dec 2016 12:26:07 -0500 Received: from e36.co.us.ibm.com (e36.co.us.ibm.com [32.97.110.154]) by mx0b-001b2d01.pphosted.com with ESMTP id 27f5sgwqh8-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 20 Dec 2016 12:26:06 -0500 Received: from localhost by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 20 Dec 2016 10:26:06 -0700 Received: from d03dlp03.boulder.ibm.com (9.17.202.179) by e36.co.us.ibm.com (192.168.1.136) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 20 Dec 2016 10:26:04 -0700 Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id 7DDB219D801C; Tue, 20 Dec 2016 10:25:22 -0700 (MST) Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id uBKHQ2Z19568526; Tue, 20 Dec 2016 10:26:04 -0700 Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DBB5478041; Tue, 20 Dec 2016 10:26:03 -0700 (MST) Received: from oc1687012634.ibm.com (unknown [9.85.169.90]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTP id 87D3178038; Tue, 20 Dec 2016 10:26:03 -0700 (MST) From: Pat Haugen Subject: [PATCH, testsuite] Add -fno-sched-pressure to a couple sms-*.c tests for powerpc To: GCC Patches Cc: Segher Boessenkool Date: Tue, 20 Dec 2016 11:26:02 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16122017-0020-0000-0000-00000A8FDFB7 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006285; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000198; SDB=6.00796566; UDB=6.00386611; IPR=6.00574379; BA=6.00004991; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013665; XFM=3.00000011; UTC=2016-12-20 17:26:05 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16122017-0021-0000-0000-000058432868 Message-Id: <987c1aaa-ae0f-54aa-ac7f-20ab6305da0e@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-12-20_12:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1612200220 X-IsSubscribed: yes gcc.dg/sms-3.c and gcc.dg/sms-6.c fail on powerpc when -fsched-pressure is used. The -fsched-pressure option changes the value returned by rs6000_issue_rate which in turn affects the computed initiation interval in the SMS code and leads to failure to modulo schedule the single loop in sms-3.c and 1 of the 3 loops in sms-6.c. This patch adds that option for powerpc and is a precursor to a patch I'll submit shortly that enables -fsched-pressure by default for the rs6000 port. I have verified the updated tests pass both before and after my patch to enable -fsched-pressure is applied. Ok for trunk? -Pat testsuite/ChangeLog: 2016-12-20 Pat Haugen * gcc.dg/sms-3.c: Add -fno-sched-pressure for powerpc. * gcc.dg/sms-6.c: Likewise. Index: gcc.dg/sms-3.c =================================================================== --- gcc.dg/sms-3.c (revision 243651) +++ gcc.dg/sms-3.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -fmodulo-sched -funroll-loops -fdump-rtl-sms --param sms-min-sc=1 -fmodulo-sched-allow-regmoves" } */ +/* { dg-options "-O2 -fmodulo-sched -funroll-loops -fdump-rtl-sms --param sms-min-sc=1 -fmodulo-sched-allow-regmoves -fno-sched-pressure" { target powerpc*-*-* } } */ extern void abort (void); Index: gcc.dg/sms-6.c =================================================================== --- gcc.dg/sms-6.c (revision 243651) +++ gcc.dg/sms-6.c (working copy) @@ -1,7 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target size32plus } */ /* { dg-options "-O2 -fmodulo-sched -fdump-rtl-sms --param sms-min-sc=1" } */ -/* { dg-options "-O2 -fmodulo-sched -fdump-rtl-sms --param sms-min-sc=1 -fmodulo-sched-allow-regmoves" { target powerpc*-*-* } } */ +/* { dg-options "-O2 -fmodulo-sched -fdump-rtl-sms --param sms-min-sc=1 -fmodulo-sched-allow-regmoves -fno-sched-pressure" { target powerpc*-*-* } } */ extern void abort (void);