From patchwork Tue Apr 10 21:49:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Sawdey X-Patchwork-Id: 896959 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-476171-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.vnet.ibm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="xqrIJ6UC"; 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 40LLSB3sH3z9s2Y for ; Wed, 11 Apr 2018 07:50:01 +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 :subject:from:to:cc:date:content-type:mime-version:message-id; q=dns; s=default; b=VtRUTIqNHonDaOxk45vintK79xpd67UFkaf96y9EEIG p+JouJOT7RxFmsaYrXyPYvBNRSYbwpGaYDJT8HB7zFC0tBbl9uua7zs/pdTDtVn0 pZ7G1o0B9sVuVEW2hnOKm/gcN4UYOnMLoDRYrDDrozLaEGN/9ibk4fCD5Pj6GgN0 = 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:date:content-type:mime-version:message-id; s=default; bh=1XLJzHaR9T5zvPXVTqE6+hxFxAo=; b=xqrIJ6UCurbEQDLaw GD/+MPD1W4fWfd5nANAuYB+RBd4xEnXHQ2agTaVoT+wzVn7Q0Me0upVhlYeLaZQH 9He/F1VxehfCJWIwp/hCgtncJy8iw7duEkUpkEVnFeb1b/2C0RVx7hrTXrz0m+3L 6wL7FUlIEkWAQBT3bkpYPXvwOo= Received: (qmail 105966 invoked by alias); 10 Apr 2018 21:49:54 -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 105956 invoked by uid 89); 10 Apr 2018 21:49:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-16.6 required=5.0 tests=BAYES_00, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=6000 X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 10 Apr 2018 21:49:51 +0000 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3ALnLFP032721 for ; Tue, 10 Apr 2018 17:49:50 -0400 Received: from e18.ny.us.ibm.com (e18.ny.us.ibm.com [129.33.205.208]) by mx0a-001b2d01.pphosted.com with ESMTP id 2h8yt7qngk-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Tue, 10 Apr 2018 17:49:49 -0400 Received: from localhost by e18.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 10 Apr 2018 17:49:48 -0400 Received: from b01cxnp22035.gho.pok.ibm.com (9.57.198.25) by e18.ny.us.ibm.com (146.89.104.205) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 10 Apr 2018 17:49:46 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3ALnjXs48627924; Tue, 10 Apr 2018 21:49:45 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6F03DB204D; Tue, 10 Apr 2018 18:51:51 -0400 (EDT) Received: from ragesh3a (unknown [9.85.159.167]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id 2AD63B2052; Tue, 10 Apr 2018 18:51:51 -0400 (EDT) Subject: [PATCH rs6000: document options (PR85321) From: Aaron Sawdey To: gcc-patches@gcc.gnu.org Cc: Segher Boessenkool , David Edelsohn Date: Tue, 10 Apr 2018 16:49:44 -0500 Mime-Version: 1.0 X-TM-AS-GCONF: 00 x-cbid: 18041021-0044-0000-0000-00000400A653 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008833; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000256; SDB=6.01016039; UDB=6.00518113; IPR=6.00795289; MB=3.00020509; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-10 21:49:47 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041021-0045-0000-0000-00000830C080 Message-Id: <1523396984.6245.8.camel@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-04-10_08:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804100202 X-IsSubscribed: yes This updates invoke.texi to document -mblock-compare-inline-limit, -mblock-compare-inline-loop-limit, and -mstring-compare-inline-limit. Tested with "make pdf", ok for trunk? 2018-04-10 Aaron Sawdey PR target/85321 * doc/invoke.texi (RS/6000 and PowerPC Options): Document options -mblock-compare-inline-limit, -mblock-compare-inline-loop-limit, and -mstring-compare-inline-limit. Index: gcc/doc/invoke.texi =================================================================== --- gcc/doc/invoke.texi (revision 259295) +++ gcc/doc/invoke.texi (working copy) @@ -1080,6 +1080,9 @@ -maix-struct-return -msvr4-struct-return @gol -mabi=@var{abi-type} -msecure-plt -mbss-plt @gol -mblock-move-inline-limit=@var{num} @gol +-mblock-compare-inline-limit=@var{num} @gol +-mblock-compare-inline-loop-limit=@var{num} @gol +-mstring-compare-inline-limit=@var{num} @gol -misel -mno-isel @gol -misel=yes -misel=no @gol -mpaired @gol @@ -24142,6 +24145,31 @@ @var{num} is 32 bytes on 32-bit targets and 64 bytes on 64-bit targets. The default value is target-specific. +@item -mblock-compare-inline-limit=@var{num} +@opindex mblock-compare-inline-limit +Generate non-looping inline code for all block compares (such as calls +to @code{memcmp} or structure compares) less than or equal to @var{num} +bytes. If @var{num} is 0, all inline expansion (non-loop and loop) of +block compare is disabled. The default value is target-specific. + +@item -mblock-compare-inline-loop-limit=@var{num} +@opindex mblock-compare-inline-loop-limit +Generate an inline expansion using loop code for all block compares that +are less than or equal to @var{num} bytes, but greater than the limit +for non-loop inline block compare expansion. If the block length is not +constant, at most @var{num} bytes will be compared before @code{memcmp} +is called to compare the remainder of the block. The default value is +target-specific. + +@item -mstring-compare-inline-limit=@var{num} +@opindex mstring-compare-inline-limit +Generate at most @var{num} pairs of load instructions to compare the +string inline. If the difference or end of string is not found at the +end of the inline compare a call to @code{strcmp} or @code{strncmp} will +take care of the rest of the comparison. The default is 8 pairs of +loads, which will compare 64 bytes on a 64-bit target and 32 bytes on a +32-bit target. + @item -G @var{num} @opindex G @cindex smaller data references (PowerPC)