Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/m68k/m68k use mvz[wb] when possible
details: https://anonhg.NetBSD.org/src/rev/b2f036c8e44c
branches: trunk
changeset: 788818:b2f036c8e44c
user: matt <matt%NetBSD.org@localhost>
date: Mon Jul 22 03:37:17 2013 +0000
description:
use mvz[wb] when possible
diffstat:
sys/arch/m68k/m68k/oc_cksum.s | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (41 lines):
diff -r 8b5028f4b0c2 -r b2f036c8e44c sys/arch/m68k/m68k/oc_cksum.s
--- a/sys/arch/m68k/m68k/oc_cksum.s Mon Jul 22 03:30:38 2013 +0000
+++ b/sys/arch/m68k/m68k/oc_cksum.s Mon Jul 22 03:37:17 2013 +0000
@@ -1,4 +1,4 @@
-| $NetBSD: oc_cksum.s,v 1.7 2013/07/22 03:30:38 matt Exp $
+| $NetBSD: oc_cksum.s,v 1.8 2013/07/22 03:37:17 matt Exp $
| Copyright (c) 1988 Regents of the University of California.
| All rights reserved.
@@ -194,19 +194,31 @@
jeq L6 | if 1 excess
| 3 bytes excess
+#ifdef __mcoldfire__
+ mvzw (-3,%a0,%d1:l),%d2 | add in last full word then drop
+#else
clrl %d2
movw (-3,%a0,%d1:l),%d2 | add in last full word then drop
+#endif
addl %d2,%d0 | through to pick up last byte
L6: | 1 byte excess
+#ifdef __mcoldfire__
+ mvzb (-1,%a0,%d1:l),%d2
+#else
clrl %d2
movb (-1,%a0,%d1:l),%d2
+#endif
lsll #8,%d2
addl %d2,%d0
jra L1
L7: | 2 bytes excess
+#ifdef __mcoldfire__
+ mvzw (-2,%a0,%d1:l),%d2
+#else
clrl %d2
movw (-2,%a0,%d1:l),%d2
+#endif
addl %d2,%d0
jra L1
Home |
Main Index |
Thread Index |
Old Index