Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x68k/stand/xxboot Minor improvement.



details:   https://anonhg.NetBSD.org/src/rev/33e9cf483ad5
branches:  trunk
changeset: 942917:33e9cf483ad5
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sat Aug 22 10:12:29 2020 +0000

description:
Minor improvement.
add/addx is faster and the size remains the same.

diffstat:

 sys/arch/x68k/stand/xxboot/ashldi3.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r a44fe6246ab3 -r 33e9cf483ad5 sys/arch/x68k/stand/xxboot/ashldi3.S
--- a/sys/arch/x68k/stand/xxboot/ashldi3.S      Sat Aug 22 10:07:29 2020 +0000
+++ b/sys/arch/x68k/stand/xxboot/ashldi3.S      Sat Aug 22 10:12:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ashldi3.S,v 1.2 2020/08/22 10:05:04 isaki Exp $        */
+/*     $NetBSD: ashldi3.S,v 1.3 2020/08/22 10:12:29 isaki Exp $        */
 
 /*
  * Copyright (C) 2020 Tetsuya Isaki. All rights reserved.
@@ -37,8 +37,8 @@
                                                | %a0     = shift count
                jbra    start
 loop:
-               lsll    #1,%d1                  | X:%d1 <<= 1
-               roxll   #1,%d0                  | %d0:X <<= 1
+               addl    %d1,%d1                 | X:%d1 <<= 1
+               addxl   %d0,%d0                 | %d0:X <<= 1
 start:
                subql   #1,%a0                  | sub %a0 doesn't affect ccr,
                tstl    %a0                     |  but this extra TST op is



Home | Main Index | Thread Index | Old Index