Home | History | Annotate | Line # | Download | only in sh3
      1  1.8      uwe /*	$NetBSD: movstrSI.S,v 1.8 2009/01/07 22:15:18 uwe Exp $	*/
      2  1.1  msaitoh 
      3  1.1  msaitoh /*
      4  1.1  msaitoh  * Copyright (c) 2000 SHIMIZU Ryo.  All rights reserved.
      5  1.1  msaitoh  *
      6  1.1  msaitoh  * Redistribution and use in source and binary forms, with or without
      7  1.1  msaitoh  * modification, are permitted provided that the following conditions
      8  1.1  msaitoh  * are met:
      9  1.1  msaitoh  * 1. Redistributions of source code must retain the above copyright
     10  1.1  msaitoh  *    notice, this list of conditions and the following disclaimer.
     11  1.1  msaitoh  * 2. Redistributions in binary form must reproduce the above copyright
     12  1.1  msaitoh  *    notice, this list of conditions and the following disclaimer in the
     13  1.1  msaitoh  *    documentation and/or other materials provided with the distribution.
     14  1.1  msaitoh  * 3. The name of the author may not be used to endorse or promote products
     15  1.1  msaitoh  *    derived from this software without specific prior written permission.
     16  1.1  msaitoh  *
     17  1.1  msaitoh  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     18  1.1  msaitoh  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     19  1.1  msaitoh  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     20  1.1  msaitoh  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     21  1.1  msaitoh  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     22  1.1  msaitoh  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     23  1.1  msaitoh  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     24  1.1  msaitoh  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     25  1.1  msaitoh  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     26  1.1  msaitoh  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     27  1.1  msaitoh  */
     28  1.1  msaitoh 
     29  1.2  msaitoh #include <machine/asm.h>
     30  1.1  msaitoh 
     31  1.5      uwe 
     32  1.8      uwe #ifdef __ELF__
     33  1.8      uwe 	.hidden __movstrSI4, __movmemSI4
     34  1.8      uwe 	.hidden __movstrSI8, __movmemSI8
     35  1.8      uwe 	.hidden __movstrSI12, __movmemSI12
     36  1.8      uwe 	.hidden __movstrSI16, __movmemSI16
     37  1.8      uwe 	.hidden __movstrSI20, __movmemSI20
     38  1.8      uwe 	.hidden __movstrSI24, __movmemSI24
     39  1.8      uwe 	.hidden __movstrSI28, __movmemSI28
     40  1.8      uwe 	.hidden __movstrSI32, __movmemSI32
     41  1.8      uwe 	.hidden __movstrSI36, __movmemSI36
     42  1.8      uwe 	.hidden __movstrSI40, __movmemSI40
     43  1.8      uwe 	.hidden __movstrSI44, __movmemSI44
     44  1.8      uwe 	.hidden __movstrSI48, __movmemSI48
     45  1.8      uwe 	.hidden __movstrSI52, __movmemSI52
     46  1.8      uwe 	.hidden __movstrSI56, __movmemSI56
     47  1.8      uwe 	.hidden __movstrSI60, __movmemSI60
     48  1.8      uwe 	.hidden __movstrSI64, __movmemSI64
     49  1.8      uwe #endif
     50  1.8      uwe 
     51  1.8      uwe 
     52  1.3  msaitoh NENTRY(__movstrSI64)
     53  1.5      uwe 	mov.l	@(60, r5), r0
     54  1.5      uwe 	mov.l	r0, @(60, r4)
     55  1.3  msaitoh ALTENTRY(__movstrSI60)
     56  1.5      uwe 	mov.l	@(56, r5), r0
     57  1.5      uwe 	mov.l	r0, @(56, r4)
     58  1.3  msaitoh ALTENTRY(__movstrSI56)
     59  1.5      uwe 	mov.l	@(52, r5), r0
     60  1.5      uwe 	mov.l	r0, @(52, r4)
     61  1.3  msaitoh ALTENTRY(__movstrSI52)
     62  1.5      uwe 	mov.l	@(48, r5), r0
     63  1.5      uwe 	mov.l	r0, @(48, r4)
     64  1.3  msaitoh ALTENTRY(__movstrSI48)
     65  1.5      uwe 	mov.l	@(44, r5), r0
     66  1.5      uwe 	mov.l	r0, @(44, r4)
     67  1.3  msaitoh ALTENTRY(__movstrSI44)
     68  1.5      uwe 	mov.l	@(40, r5), r0
     69  1.5      uwe 	mov.l	r0, @(40, r4)
     70  1.3  msaitoh ALTENTRY(__movstrSI40)
     71  1.5      uwe 	mov.l	@(36, r5), r0
     72  1.5      uwe 	mov.l	r0, @(36, r4)
     73  1.3  msaitoh ALTENTRY(__movstrSI36)
     74  1.5      uwe 	mov.l	@(32, r5), r0
     75  1.5      uwe 	mov.l	r0, @(32, r4)
     76  1.3  msaitoh ALTENTRY(__movstrSI32)
     77  1.5      uwe 	mov.l	@(28, r5), r0
     78  1.5      uwe 	mov.l	r0, @(28, r4)
     79  1.3  msaitoh ALTENTRY(__movstrSI28)
     80  1.5      uwe 	mov.l	@(24, r5), r0
     81  1.5      uwe 	mov.l	r0, @(24, r4)
     82  1.3  msaitoh ALTENTRY(__movstrSI24)
     83  1.5      uwe 	mov.l	@(20, r5), r0
     84  1.5      uwe 	mov.l	r0, @(20, r4)
     85  1.3  msaitoh ALTENTRY(__movstrSI20)
     86  1.5      uwe 	mov.l	@(16, r5), r0
     87  1.5      uwe 	mov.l	r0, @(16, r4)
     88  1.3  msaitoh ALTENTRY(__movstrSI16)
     89  1.5      uwe 	mov.l	@(12, r5), r0
     90  1.5      uwe 	mov.l	r0, @(12, r4)
     91  1.3  msaitoh ALTENTRY(__movstrSI12)
     92  1.5      uwe 	mov.l	@(8, r5), r0
     93  1.5      uwe 	mov.l	r0, @(8, r4)
     94  1.3  msaitoh ALTENTRY(__movstrSI8)
     95  1.5      uwe 	mov.l	@(4, r5), r0
     96  1.5      uwe 	mov.l	r0, @(4, r4)
     97  1.3  msaitoh ALTENTRY(__movstrSI4)
     98  1.5      uwe 	mov.l	@r5, r0
     99  1.1  msaitoh 	rts
    100  1.5      uwe 	 mov.l	r0, @r4
    101  1.7      uwe 
    102  1.7      uwe 
    103  1.7      uwe /* gcc4 uses movmem, older versions use movstr */
    104  1.7      uwe STRONG_ALIAS(__movmemSI4, __movstrSI4)
    105  1.7      uwe STRONG_ALIAS(__movmemSI8, __movstrSI8)
    106  1.7      uwe STRONG_ALIAS(__movmemSI12, __movstrSI12)
    107  1.7      uwe STRONG_ALIAS(__movmemSI16, __movstrSI16)
    108  1.7      uwe STRONG_ALIAS(__movmemSI20, __movstrSI20)
    109  1.7      uwe STRONG_ALIAS(__movmemSI24, __movstrSI24)
    110  1.7      uwe STRONG_ALIAS(__movmemSI28, __movstrSI28)
    111  1.7      uwe STRONG_ALIAS(__movmemSI32, __movstrSI32)
    112  1.7      uwe STRONG_ALIAS(__movmemSI36, __movstrSI36)
    113  1.7      uwe STRONG_ALIAS(__movmemSI40, __movstrSI40)
    114  1.7      uwe STRONG_ALIAS(__movmemSI44, __movstrSI44)
    115  1.7      uwe STRONG_ALIAS(__movmemSI48, __movstrSI48)
    116  1.7      uwe STRONG_ALIAS(__movmemSI52, __movstrSI52)
    117  1.7      uwe STRONG_ALIAS(__movmemSI56, __movstrSI56)
    118  1.7      uwe STRONG_ALIAS(__movmemSI60, __movstrSI60)
    119  1.7      uwe STRONG_ALIAS(__movmemSI64, __movstrSI64)
    120