Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Fix another misplaced label for cvt_s_w()...



details:   https://anonhg.NetBSD.org/src/rev/2dc0762cd1cb
branches:  trunk
changeset: 378914:2dc0762cd1cb
user:      simonb <simonb%NetBSD.org@localhost>
date:      Thu Apr 29 08:45:29 2021 +0000

description:
Fix another misplaced label for cvt_s_w() but use a named local label
and redo fix for cvt_d_w() in rev 1.52 the same way.

diffstat:

 sys/arch/mips/mips/fp.S |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (52 lines):

diff -r 3ef6391075e8 -r 2dc0762cd1cb sys/arch/mips/mips/fp.S
--- a/sys/arch/mips/mips/fp.S   Thu Apr 29 08:14:08 2021 +0000
+++ b/sys/arch/mips/mips/fp.S   Thu Apr 29 08:45:29 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fp.S,v 1.53 2021/04/29 08:14:08 simonb Exp $   */
+/*     $NetBSD: fp.S,v 1.54 2021/04/29 08:45:29 simonb Exp $   */
 
 /*
  * Copyright (c) 1992, 1993
@@ -1754,17 +1754,18 @@ 3:
  */
 cvt_s_w:
        jal     _C_LABEL(get_fs_int)
-       bne     t2, zero, 1f                    # check for zero
+       bne     t2, zero, .Lcvtswnot0           # check for zero
        move    t1, zero
        b       result_fs_s
 /*
  * Find out how many leading zero bits are in t2 and put in v1.
  */
+.Lcvtswnot0:
 #if __mips == 32 || __mips == 64
        clz     v1, t2
 #else
        .set    noat
-1:
+
        move    v0, t2
        move    v1, zero
        srl     AT, v0, 16
@@ -1843,18 +1844,19 @@ 2:
  */
 cvt_d_w:
        jal     _C_LABEL(get_fs_int)
-       bne     t2, zero, 1f                    # check for zero
+       bne     t2, zero, .Lcvtdwnot0           # check for zero
        move    t1, zero                        # result=0
        move    t3, zero
        b       result_fs_d
 /*
  * Find out how many leading zero bits are in t2 and put in v1.
  */
-1:
+.Lcvtdwnot0:
 #if __mips == 32 || __mips == 64
        clz     v1, t2
 #else /* __mips == 32 || __mips == 64 */
        .set    noat
+
        move    v0, t2
        move    v1, zero
        srl     AT, v0, 16



Home | Main Index | Thread Index | Old Index