1/* $NetBSD: movstrSI.S,v 1.7 2006/05/22 21:34:08 uwe 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#include <machine/asm.h> 30 31 32#ifdef __ELF__ 33 .hidden __movstrSI4, __movmemSI4 34 .hidden __movstrSI8, __movmemSI8 35 .hidden __movstrSI12, __movmemSI12 36 .hidden __movstrSI16, __movmemSI16 37 .hidden __movstrSI20, __movmemSI20 38 .hidden __movstrSI24, __movmemSI24 39 .hidden __movstrSI28, __movmemSI28 40 .hidden __movstrSI32, __movmemSI32 41 .hidden __movstrSI36, __movmemSI36 42 .hidden __movstrSI40, __movmemSI40 43 .hidden __movstrSI44, __movmemSI44 44 .hidden __movstrSI48, __movmemSI48 45 .hidden __movstrSI52, __movmemSI52 46 .hidden __movstrSI56, __movmemSI56 47 .hidden __movstrSI60, __movmemSI60 48 .hidden __movstrSI64, __movmemSI64 49#endif 50 51 52NENTRY(__movstrSI64) 53 mov.l @(60, r5), r0 54 mov.l r0, @(60, r4) 55ALTENTRY(__movstrSI60) 56 mov.l @(56, r5), r0 57 mov.l r0, @(56, r4) 58ALTENTRY(__movstrSI56) 59 mov.l @(52, r5), r0 60 mov.l r0, @(52, r4) 61ALTENTRY(__movstrSI52) 62 mov.l @(48, r5), r0 63 mov.l r0, @(48, r4) 64ALTENTRY(__movstrSI48) 65 mov.l @(44, r5), r0 66 mov.l r0, @(44, r4) 67ALTENTRY(__movstrSI44) 68 mov.l @(40, r5), r0 69 mov.l r0, @(40, r4) 70ALTENTRY(__movstrSI40) 71 mov.l @(36, r5), r0 72 mov.l r0, @(36, r4) 73ALTENTRY(__movstrSI36) 74 mov.l @(32, r5), r0 75 mov.l r0, @(32, r4) 76ALTENTRY(__movstrSI32) 77 mov.l @(28, r5), r0 78 mov.l r0, @(28, r4) 79ALTENTRY(__movstrSI28) 80 mov.l @(24, r5), r0 81 mov.l r0, @(24, r4) 82ALTENTRY(__movstrSI24) 83 mov.l @(20, r5), r0 84 mov.l r0, @(20, r4) 85ALTENTRY(__movstrSI20) 86 mov.l @(16, r5), r0 87 mov.l r0, @(16, r4) 88ALTENTRY(__movstrSI16) 89 mov.l @(12, r5), r0 90 mov.l r0, @(12, r4) 91ALTENTRY(__movstrSI12) 92 mov.l @(8, r5), r0 93 mov.l r0, @(8, r4) 94ALTENTRY(__movstrSI8) 95 mov.l @(4, r5), r0 96 mov.l r0, @(4, r4) 97ALTENTRY(__movstrSI4) 98 mov.l @r5, r0 99 rts 100 mov.l r0, @r4 101 102 103/* gcc4 uses movmem, older versions use movstr */ 104STRONG_ALIAS(__movmemSI4, __movstrSI4) 105STRONG_ALIAS(__movmemSI8, __movstrSI8) 106STRONG_ALIAS(__movmemSI12, __movstrSI12) 107STRONG_ALIAS(__movmemSI16, __movstrSI16) 108STRONG_ALIAS(__movmemSI20, __movstrSI20) 109STRONG_ALIAS(__movmemSI24, __movstrSI24) 110STRONG_ALIAS(__movmemSI28, __movstrSI28) 111STRONG_ALIAS(__movmemSI32, __movstrSI32) 112STRONG_ALIAS(__movmemSI36, __movstrSI36) 113STRONG_ALIAS(__movmemSI40, __movstrSI40) 114STRONG_ALIAS(__movmemSI44, __movstrSI44) 115STRONG_ALIAS(__movmemSI48, __movstrSI48) 116STRONG_ALIAS(__movmemSI52, __movstrSI52) 117STRONG_ALIAS(__movmemSI56, __movstrSI56) 118STRONG_ALIAS(__movmemSI60, __movstrSI60) 119STRONG_ALIAS(__movmemSI64, __movstrSI64) 120