From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 110411 invoked by alias); 28 Feb 2017 07:32:14 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 110398 invoked by uid 89); 28 Feb 2017 07:32:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,KHOP_DYNAMIC,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=msg00380html, UD:msg00380.html, msg00380.html X-HELO: mx0a-001b2d01.pphosted.com Subject: Re: [PATCH] powerpc64: strrchr optimization for power8 To: libc-alpha@sourceware.org References: <1487070321-27700-1-git-send-email-raji@linux.vnet.ibm.com> <52479e2b-f675-9d6e-7b34-27e24ee48081@redhat.com> <55dfbdb0-3776-caa9-e87b-10c297b4b496@linux.vnet.ibm.com> <139ea9b7-005d-fd33-a223-fe36fc995f4d@redhat.com> From: Rajalakshmi Srinivasaraghavan Date: Tue, 28 Feb 2017 07:32:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <139ea9b7-005d-fd33-a223-fe36fc995f4d@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17022807-0024-0000-0000-000003A811B1 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17022807-0025-0000-0000-000011232FF4 Message-Id: <00958c35-0b2d-60c9-f618-cfcd185710e8@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-02-28_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1702280070 X-SW-Source: 2017-02/txt/msg00528.txt.bz2 On 02/20/2017 09:36 PM, Carlos O'Donell wrote: > On 02/20/2017 11:01 AM, Rajalakshmi Srinivasaraghavan wrote: >> >> >> On 02/20/2017 07:12 PM, Carlos O'Donell wrote: >>> On 02/14/2017 06:05 AM, Rajalakshmi Srinivasaraghavan wrote: >>>> P7 code is used for <=32B strings and for > 32B vectorized loops are used. >>>> This shows as an average 25% improvement depending on the position of search >>>> character. The performance is same for shorter strings. >>>> Tested on ppc64 and ppc64le. >>> What did you use to test the 25% improvement? >> >> This improvement is seen when compared to power7. Benchtest is >> modified to use length from 0 to 400 to find the average for >> different lengths. > > Could you post your modifications for review an explain your > process in a little more detail. I'm curious about the changes > you made. Carlos, Posted benchtest modification here: https://sourceware.org/ml/libc-alpha/2017-02/msg00380.html -- Thanks Rajalakshmi S