From patchwork Mon Feb 6 06:01:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajalakshmi S X-Patchwork-Id: 19119 Received: (qmail 38047 invoked by alias); 6 Feb 2017 06:01:32 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 38030 invoked by uid 89); 6 Feb 2017 06:01:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=sk:Sriniva, Rajalakshmi, rajalakshmi, sk:sriniva X-HELO: mx0a-001b2d01.pphosted.com From: Rajalakshmi Srinivasaraghavan To: libc-alpha@sourceware.org Cc: Rajalakshmi Srinivasaraghavan Subject: [PATCH] powerpc: Use latest optimizations for internal function calls Date: Mon, 6 Feb 2017 11:31:17 +0530 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17020606-0008-0000-0000-0000052480D3 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17020606-0009-0000-0000-0000132A9E8F Message-Id: <1486360877-667-1-git-send-email-raji@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-02-06_02:, , 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-1702060061 Some of the power8 strings optimizations are not updated to use the latest version of other string optimizations. Tested on powerpc64 and powerpc64le. 2017-02-05 Rajalakshmi Srinivasaraghavan * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Redefine STRCHR as __strchr_power8. * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Redefine strlen as __strlen_power8. --- sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S | 2 +- sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S b/sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S index f188c45..5a0eb9c 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S +++ b/sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S @@ -44,6 +44,6 @@ /* strnlen is used to check if len of r3 is more than r4. */ #define STRNLEN __strnlen_power7 /* strchr is used to check if first char of r4 is present in r3. */ -#define STRCHR __strchr_power7 +#define STRCHR __strchr_power8 #include diff --git a/sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c b/sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c index d6e69b1..f138bee 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c +++ b/sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c @@ -23,8 +23,8 @@ #define libc_hidden_def(name) extern typeof (strcpy) __strcpy_power8; -extern typeof (strlen) __strlen_power7; +extern typeof (strlen) __strlen_power8; #define strcpy __strcpy_power8 -#define strlen __strlen_power7 +#define strlen __strlen_power8 #include