From patchwork Tue Aug 22 13:39:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akhilesh Kumar X-Patchwork-Id: 804447 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=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-83640-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="r1IccstV"; 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 3xcBd03TPTz9sxR for ; Tue, 22 Aug 2017 23:44:51 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :content-type:references; q=dns; s=default; b=DcLkg9/rG+8B78C6nC RW3ijkwH4JRdFa9VduOBolQOXWsait1yy8NtPY8z2B/+SMeQhPqVKh8+td2MibFV Oa3RMV5UTy8Nmq17t8k4fdYnhWwFkx+vMb19+vtQEYaNhZK1sR/DzgkS6rCIGD9I wCo0wxeswyztd45rCgox7DAq0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :content-type:references; s=default; bh=Zgp/KqVbvD/gAQrQQ1b9aOv6 +HQ=; b=r1IccstVGvNRb6vtsx7j22X5tqfxVAzS0fw6nXeAdTnD14Xgf+gYqg25 3B37XD5nCk0QwoYmffaUfSGm1PStjg5q+737X/mqpWvY+o5uW7H7WHR7yUlq1lhh JvKjxnPaKxi2xQ5wKh7ed6VEgI18NZ+CgMjYVTxcAZpMDr5wCoQ= Received: (qmail 63501 invoked by alias); 22 Aug 2017 13:44:45 -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 61978 invoked by uid 89); 22 Aug 2017 13:44:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy=12b, r0, Hx-spam-relays-external:ESMTPA X-HELO: mailout1.samsung.com From: Akhilesh Kumar To: libc-alpha@sourceware.org Cc: Akhilesh Kumar Subject: [PATCH 1/1] Made regs from comma-separated to dashed range Date: Tue, 22 Aug 2017 19:09:09 +0530 Message-Id: <1503409149-20399-1-git-send-email-akhilesh.k@samsung.com> X-CMS-MailID: 20170822134423epcas5p267a8d869468390a7262a7c83344b9b3c X-Msg-Generator: CA X-Sender-IP: 182.195.40.13 X-Local-Sender: =?UTF-8?B?QUtISUxFU0ggS1VNQVIbU1JJLURlbGhpLVBsYXRmb3JtIFMv?= =?UTF-8?B?VyAxIFRlYW0b7IK87ISx7KCE7J6QG0NoaWVmIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?QUtISUxFU0ggS1VNQVIbU1JJLURlbGhpLVBsYXRmb3JtIFMv?= =?UTF-8?B?VyAxIFRlYW0bU2Ftc3VuZ8KgRWxlY3Ryb25pY3MbQ2hpZWYgRW5naW5lZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG1NXQUhRG0MxMElEMDJJRDAyODExNQ==?= X-MTR: 20170822134423epcas5p267a8d869468390a7262a7c83344b9b3c CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20170822134423epcas5p267a8d869468390a7262a7c83344b9b3c X-RootMTR: 20170822134423epcas5p267a8d869468390a7262a7c83344b9b3c References: The can be a comma-separated list, or a dashed range, or a mixture. R0, R1, R2, R3, R4, R7, R8 R0-R4, R7, R8 [BZ #21989] *sysdeps/arm/memcpy.S :- change ldmia/stmia comma-separated to dashed range *sysdeps/arm/memmove.S :- change stmdb/stmdb comma-separated to dashed range --- sysdeps/arm/memcpy.S | 8 ++++---- sysdeps/arm/memmove.S | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sysdeps/arm/memcpy.S b/sysdeps/arm/memcpy.S index 62e48c3..7ac956d 100644 --- a/sysdeps/arm/memcpy.S +++ b/sysdeps/arm/memcpy.S @@ -105,9 +105,9 @@ ENTRY(memcpy) PLD( pld [r1, #92] ) 3: PLD( pld [r1, #124] ) -4: ldmia r1!, {r3, r4, r5, r6, r7, r8, ip, lr} +4: ldmia r1!, {r3-r8, ip, lr} subs r2, r2, #32 - stmia r0!, {r3, r4, r5, r6, r7, r8, ip, lr} + stmia r0!, {r3-r8, ip, lr} bge 3b PLD( cmn r2, #96 ) PLD( bge 4b ) @@ -260,7 +260,7 @@ ENTRY(memcpy) PLD( pld [r1, #92] ) 12: PLD( pld [r1, #124] ) -13: ldmia r1!, {r4, r5, r6, r7} +13: ldmia r1!, {r4-r7} mov r3, lr, PULL #\pull subs r2, r2, #32 ldmia r1!, {r8, r10, ip, lr} @@ -279,7 +279,7 @@ ENTRY(memcpy) orr r10, r10, ip, PUSH #\push mov ip, ip, PULL #\pull orr ip, ip, lr, PUSH #\push - stmia r0!, {r3, r4, r5, r6, r7, r8, r10, ip} + stmia r0!, {r3-r8, r10, ip} bge 12b PLD( cmn r2, #96 ) PLD( bge 13b ) diff --git a/sysdeps/arm/memmove.S b/sysdeps/arm/memmove.S index b18aa32..5833fb5 100644 --- a/sysdeps/arm/memmove.S +++ b/sysdeps/arm/memmove.S @@ -121,9 +121,9 @@ ENTRY(memmove) PLD( pld [r1, #-96] ) 3: PLD( pld [r1, #-128] ) -4: ldmdb r1!, {r3, r4, r5, r6, r7, r8, ip, lr} +4: ldmdb r1!, {r3-r8, ip, lr} subs r2, r2, #32 - stmdb r0!, {r3, r4, r5, r6, r7, r8, ip, lr} + stmdb r0!, {r3-r8, ip, lr} bge 3b PLD( cmn r2, #96 ) PLD( bge 4b ) @@ -278,7 +278,7 @@ ENTRY(memmove) 13: ldmdb r1!, {r7, r8, r10, ip} mov lr, r3, PUSH #\push subs r2, r2, #32 - ldmdb r1!, {r3, r4, r5, r6} + ldmdb r1!, {r3-r6} orr lr, lr, ip, PULL #\pull mov ip, ip, PUSH #\push orr ip, ip, r10, PULL #\pull