xref: /netbsd-src/sys/lib/libkern/arch/sh3/movstrSI.S (revision 7cc2f76925f078d01ddc9e640a98f4ccfc9f8c3b)
1/*	$NetBSD: movstrSI.S,v 1.1 2000/06/09 04:42:24 msaitoh Exp $	*/
2
3/*
4 * Copyright (c) 2000 SHIMIZU Ryo.  All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 *    notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 *    notice, this list of conditions and the following disclaimer in the
13 *    documentation and/or other materials provided with the distribution.
14 * 3. The name of the author may not be used to endorse or promote products
15 *    derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29	.globl	___movstrSI64, ___movstrSI60, ___movstrSI56, ___movstrSI52
30	.globl	___movstrSI48, ___movstrSI44, ___movstrSI40, ___movstrSI36
31	.globl	___movstrSI32, ___movstrSI28, ___movstrSI24, ___movstrSI20
32	.globl	___movstrSI16, ___movstrSI12, ___movstrSI8,  ___movstrSI4
33
34	.text
35	.align	2
36
37___movstrSI64:
38	mov.l	@(60,r5),r0
39	mov.l	r0,@(60,r4)
40___movstrSI60:
41	mov.l	@(56,r5),r0
42	mov.l	r0,@(56,r4)
43___movstrSI56:
44	mov.l	@(52,r5),r0
45	mov.l	r0,@(52,r4)
46___movstrSI52:
47	mov.l	@(48,r5),r0
48	mov.l	r0,@(48,r4)
49___movstrSI48:
50	mov.l	@(44,r5),r0
51	mov.l	r0,@(44,r4)
52___movstrSI44:
53	mov.l	@(40,r5),r0
54	mov.l	r0,@(40,r4)
55___movstrSI40:
56	mov.l	@(36,r5),r0
57	mov.l	r0,@(36,r4)
58___movstrSI36:
59	mov.l	@(32,r5),r0
60	mov.l	r0,@(32,r4)
61___movstrSI32:
62	mov.l	@(28,r5),r0
63	mov.l	r0,@(28,r4)
64___movstrSI28:
65	mov.l	@(24,r5),r0
66	mov.l	r0,@(24,r4)
67___movstrSI24:
68	mov.l	@(20,r5),r0
69	mov.l	r0,@(20,r4)
70___movstrSI20:
71	mov.l	@(16,r5),r0
72	mov.l	r0,@(16,r4)
73___movstrSI16:
74	mov.l	@(12,r5),r0
75	mov.l	r0,@(12,r4)
76___movstrSI12:
77	mov.l	@(8,r5),r0
78	mov.l	r0,@(8,r4)
79___movstrSI8:
80	mov.l	@(4,r5),r0
81	mov.l	r0,@(4,r4)
82___movstrSI4:
83	mov.l	@r5,r0
84	rts
85	mov.l	r0,@r4
86
87
88