* [PATCH 1/1] Made regs from comma-separated to dashed range
[not found] <CGME20170822134423epcas5p267a8d869468390a7262a7c83344b9b3c@epcas5p2.samsung.com>
@ 2017-08-22 13:44 ` Akhilesh Kumar
2017-08-22 15:14 ` Joseph Myers
0 siblings, 1 reply; 2+ messages in thread
From: Akhilesh Kumar @ 2017-08-22 13:44 UTC (permalink / raw)
To: libc-alpha; +Cc: Akhilesh Kumar
The <regs> 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
--
1.7.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] Made regs from comma-separated to dashed range
2017-08-22 13:44 ` [PATCH 1/1] Made regs from comma-separated to dashed range Akhilesh Kumar
@ 2017-08-22 15:14 ` Joseph Myers
0 siblings, 0 replies; 2+ messages in thread
From: Joseph Myers @ 2017-08-22 15:14 UTC (permalink / raw)
To: Akhilesh Kumar; +Cc: libc-alpha
On Tue, 22 Aug 2017, Akhilesh Kumar wrote:
> The <regs> can be a comma-separated list, or a dashed range, or a
> mixture.
The fact that there are two different ways of writing some code is not a
justification for changing from one to the other. You need to explain
why your change is an improvement. For example, is there some external
coding standard for ARM assembly code that you wish to propose glibc
follows, which recommends one alternative over the other in this case?
And, given that there are many uses of both syntaxes in glibc, not just in
those two files, are you proposing to change all such uses to the
preferred syntax if we reach consensus on the preferred syntax?
In such a case, where it's necessary first to reach consensus on the
preferred option before making things consistent, and there is no
user-visible bug, I don't think filing bugs in Bugzilla is appropriate.
Rather, you should start with an analysis of the issue and a recommended
approach, seeking a discussion leading to consensus.
You also need to describe how a patch was tested (e.g. by verifying that
binaries of glibc built before and after the patch were identical). And
note the standard syntax for ChangeLog entries, as used in existing
examples.
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-22 15:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20170822134423epcas5p267a8d869468390a7262a7c83344b9b3c@epcas5p2.samsung.com>
2017-08-22 13:44 ` [PATCH 1/1] Made regs from comma-separated to dashed range Akhilesh Kumar
2017-08-22 15:14 ` Joseph Myers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).