CVS commit: src/lib/libc/arch/m68k/quad

2013-07-18 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Jul 18 21:18:36 UTC 2013

Modified Files:
src/lib/libc/arch/m68k/quad: ashldi3.S ashrdi3.S lshrdi3.S

Log Message:
Use stack adjustment in the lnk instruction to adjust the stack.
Saves one word on the following moveml


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/arch/m68k/quad/ashldi3.S \
src/lib/libc/arch/m68k/quad/ashrdi3.S
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/arch/m68k/quad/lshrdi3.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/arch/m68k/quad/ashldi3.S
diff -u src/lib/libc/arch/m68k/quad/ashldi3.S:1.6 src/lib/libc/arch/m68k/quad/ashldi3.S:1.7
--- src/lib/libc/arch/m68k/quad/ashldi3.S:1.6	Tue Jul 16 21:49:45 2013
+++ src/lib/libc/arch/m68k/quad/ashldi3.S	Thu Jul 18 21:18:36 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ashldi3.S,v 1.6 2013/07/16 21:49:45 matt Exp $	*/
+/*	$NetBSD: ashldi3.S,v 1.7 2013/07/18 21:18:36 matt Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,8 +37,8 @@
 | d3 offset (32 - shift)
 
 ENTRY(__ashldi3)
-	link	%fp,#0
-	moveml	%d2-%d4,-(%sp)
+	link	%fp,#-12
+	moveml	%d2-%d4,(%sp)
 	movel	8(%fp),%d0
 	movel	12(%fp),%d1
 	movel	16(%fp),%d2
Index: src/lib/libc/arch/m68k/quad/ashrdi3.S
diff -u src/lib/libc/arch/m68k/quad/ashrdi3.S:1.6 src/lib/libc/arch/m68k/quad/ashrdi3.S:1.7
--- src/lib/libc/arch/m68k/quad/ashrdi3.S:1.6	Tue Jul 16 21:49:45 2013
+++ src/lib/libc/arch/m68k/quad/ashrdi3.S	Thu Jul 18 21:18:36 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ashrdi3.S,v 1.6 2013/07/16 21:49:45 matt Exp $	*/
+/*	$NetBSD: ashrdi3.S,v 1.7 2013/07/18 21:18:36 matt Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,8 +37,8 @@
 | d3 offset (32 - shift)
 
 ENTRY(__ashrdi3)
-	link	%fp,#0
-	moveml	%d2-%d4,-(%sp)
+	link	%fp,#-12
+	moveml	%d2-%d4,(%sp)
 	movel	8(%fp),%d0
 	movel	12(%fp),%d1
 	movel	16(%fp),%d2

Index: src/lib/libc/arch/m68k/quad/lshrdi3.S
diff -u src/lib/libc/arch/m68k/quad/lshrdi3.S:1.7 src/lib/libc/arch/m68k/quad/lshrdi3.S:1.8
--- src/lib/libc/arch/m68k/quad/lshrdi3.S:1.7	Tue Jul 16 21:49:45 2013
+++ src/lib/libc/arch/m68k/quad/lshrdi3.S	Thu Jul 18 21:18:36 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: lshrdi3.S,v 1.7 2013/07/16 21:49:45 matt Exp $	*/
+/*	$NetBSD: lshrdi3.S,v 1.8 2013/07/18 21:18:36 matt Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,8 +37,8 @@
 | d3 offset (32 - shift)
 
 ENTRY(__lshrdi3)
-	link	%fp,#0
-	moveml	%d2-%d4,-(%sp)
+	link	%fp,#-12
+	moveml	%d2-%d4,(%sp)
 	movel	8(%fp),%d0
 	movel	12(%fp),%d1
 	movel	16(%fp),%d2



CVS commit: src/lib/libc/arch/m68k/quad

2013-07-16 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue Jul 16 21:49:45 UTC 2013

Modified Files:
src/lib/libc/arch/m68k/quad: ashldi3.S ashrdi3.S lshrdi3.S

Log Message:
Add END(func)


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/arch/m68k/quad/ashldi3.S \
src/lib/libc/arch/m68k/quad/ashrdi3.S
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/arch/m68k/quad/lshrdi3.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/arch/m68k/quad/ashldi3.S
diff -u src/lib/libc/arch/m68k/quad/ashldi3.S:1.5 src/lib/libc/arch/m68k/quad/ashldi3.S:1.6
--- src/lib/libc/arch/m68k/quad/ashldi3.S:1.5	Tue Jul 16 20:49:42 2013
+++ src/lib/libc/arch/m68k/quad/ashldi3.S	Tue Jul 16 21:49:45 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ashldi3.S,v 1.5 2013/07/16 20:49:42 matt Exp $	*/
+/*	$NetBSD: ashldi3.S,v 1.6 2013/07/16 21:49:45 matt Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -58,3 +58,4 @@ L2:	asll	%d2,%d0
 L3:	moveml	-12(%fp),%d2-%d4
 	unlk	%fp
 	rts
+END(__ashldi3)
Index: src/lib/libc/arch/m68k/quad/ashrdi3.S
diff -u src/lib/libc/arch/m68k/quad/ashrdi3.S:1.5 src/lib/libc/arch/m68k/quad/ashrdi3.S:1.6
--- src/lib/libc/arch/m68k/quad/ashrdi3.S:1.5	Tue Jul 16 20:49:42 2013
+++ src/lib/libc/arch/m68k/quad/ashrdi3.S	Tue Jul 16 21:49:45 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ashrdi3.S,v 1.5 2013/07/16 20:49:42 matt Exp $	*/
+/*	$NetBSD: ashrdi3.S,v 1.6 2013/07/16 21:49:45 matt Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -59,3 +59,4 @@ L2:	lsrl	%d2,%d1
 L3:	moveml	-12(%fp),%d2-%d4
 	unlk	%fp
 	rts
+END(__ashrdi3)

Index: src/lib/libc/arch/m68k/quad/lshrdi3.S
diff -u src/lib/libc/arch/m68k/quad/lshrdi3.S:1.6 src/lib/libc/arch/m68k/quad/lshrdi3.S:1.7
--- src/lib/libc/arch/m68k/quad/lshrdi3.S:1.6	Tue Jul 16 20:49:42 2013
+++ src/lib/libc/arch/m68k/quad/lshrdi3.S	Tue Jul 16 21:49:45 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: lshrdi3.S,v 1.6 2013/07/16 20:49:42 matt Exp $	*/
+/*	$NetBSD: lshrdi3.S,v 1.7 2013/07/16 21:49:45 matt Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -58,3 +58,4 @@ L2:	lsrl	%d2,%d1
 L3:	moveml	-12(%fp),%d2-%d4
 	unlk	%fp
 	rts
+END(__lshrdi3)