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 32NENTRY(__movstrSI64) 33 mov.l @(60, r5), r0 34 mov.l r0, @(60, r4) 35ALTENTRY(__movstrSI60) 36 mov.l @(56, r5), r0 37 mov.l r0, @(56, r4) 38ALTENTRY(__movstrSI56) 39 mov.l @(52, r5), r0 40 mov.l r0, @(52, r4) 41ALTENTRY(__movstrSI52) 42 mov.l @(48, r5), r0 43 mov.l r0, @(48, r4) 44ALTENTRY(__movstrSI48) 45 mov.l @(44, r5), r0 46 mov.l r0, @(44, r4) 47ALTENTRY(__movstrSI44) 48 mov.l @(40, r5), r0 49 mov.l r0, @(40, r4) 50ALTENTRY(__movstrSI40) 51 mov.l @(36, r5), r0 52 mov.l r0, @(36, r4) 53ALTENTRY(__movstrSI36) 54 mov.l @(32, r5), r0 55 mov.l r0, @(32, r4) 56ALTENTRY(__movstrSI32) 57 mov.l @(28, r5), r0 58 mov.l r0, @(28, r4) 59ALTENTRY(__movstrSI28) 60 mov.l @(24, r5), r0 61 mov.l r0, @(24, r4) 62ALTENTRY(__movstrSI24) 63 mov.l @(20, r5), r0 64 mov.l r0, @(20, r4) 65ALTENTRY(__movstrSI20) 66 mov.l @(16, r5), r0 67 mov.l r0, @(16, r4) 68ALTENTRY(__movstrSI16) 69 mov.l @(12, r5), r0 70 mov.l r0, @(12, r4) 71ALTENTRY(__movstrSI12) 72 mov.l @(8, r5), r0 73 mov.l r0, @(8, r4) 74ALTENTRY(__movstrSI8) 75 mov.l @(4, r5), r0 76 mov.l r0, @(4, r4) 77ALTENTRY(__movstrSI4) 78 mov.l @r5, r0 79 rts 80 mov.l r0, @r4 81 82 83/* gcc4 uses movmem, older versions use movstr */ 84STRONG_ALIAS(__movmemSI4, __movstrSI4) 85STRONG_ALIAS(__movmemSI8, __movstrSI8) 86STRONG_ALIAS(__movmemSI12, __movstrSI12) 87STRONG_ALIAS(__movmemSI16, __movstrSI16) 88STRONG_ALIAS(__movmemSI20, __movstrSI20) 89STRONG_ALIAS(__movmemSI24, __movstrSI24) 90STRONG_ALIAS(__movmemSI28, __movstrSI28) 91STRONG_ALIAS(__movmemSI32, __movstrSI32) 92STRONG_ALIAS(__movmemSI36, __movstrSI36) 93STRONG_ALIAS(__movmemSI40, __movstrSI40) 94STRONG_ALIAS(__movmemSI44, __movstrSI44) 95STRONG_ALIAS(__movmemSI48, __movstrSI48) 96STRONG_ALIAS(__movmemSI52, __movstrSI52) 97STRONG_ALIAS(__movmemSI56, __movstrSI56) 98STRONG_ALIAS(__movmemSI60, __movstrSI60) 99STRONG_ALIAS(__movmemSI64, __movstrSI64) 100