Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/common/lib/libc/arch/arm/string Fix two signed comparisons t...



details:   https://anonhg.NetBSD.org/src/rev/089ae0e557d1
branches:  trunk
changeset: 373211:089ae0e557d1
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Tue Jan 24 07:04:27 2023 +0000

description:
Fix two signed comparisons that were missed in the last patch.
Found be rillig@

diffstat:

 common/lib/libc/arch/arm/string/memcpy_arm.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r bb13ed154281 -r 089ae0e557d1 common/lib/libc/arch/arm/string/memcpy_arm.S
--- a/common/lib/libc/arch/arm/string/memcpy_arm.S      Tue Jan 24 06:56:40 2023 +0000
+++ b/common/lib/libc/arch/arm/string/memcpy_arm.S      Tue Jan 24 07:04:27 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: memcpy_arm.S,v 1.6 2023/01/19 18:03:03 mlelstv Exp $   */
+/*     $NetBSD: memcpy_arm.S,v 1.7 2023/01/24 07:04:27 mlelstv Exp $   */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -111,8 +111,8 @@
        blo     .Lmemcpy_l4
 
        subs    r2, r2, #4
-       ldrlt   r3, [r1], #4
-       strlt   r3, [r0], #4
+       ldrlo   r3, [r1], #4
+       strlo   r3, [r0], #4
        ldmiahs r1!, {r3, r12}
        stmiahs r0!, {r3, r12}
        subhs   r2, r2, #4



Home | Main Index | Thread Index | Old Index