1*533bbdffSuwe/* $NetBSD: ashlsi3.S,v 1.6 2009/01/07 22:15:18 uwe Exp $ */ 2e983955bSuwe 3e983955bSuwe/*- 4e983955bSuwe * Copyright (C) 1999 Tsubai Masanari. All rights reserved. 5e983955bSuwe * 6e983955bSuwe * Redistribution and use in source and binary forms, with or without 7e983955bSuwe * modification, are permitted provided that the following conditions 8e983955bSuwe * are met: 9e983955bSuwe * 1. Redistributions of source code must retain the above copyright 10e983955bSuwe * notice, this list of conditions and the following disclaimer. 11e983955bSuwe * 2. Redistributions in binary form must reproduce the above copyright 12e983955bSuwe * notice, this list of conditions and the following disclaimer in the 13e983955bSuwe * documentation and/or other materials provided with the distribution. 14e983955bSuwe * 3. The name of the author may not be used to endorse or promote products 15e983955bSuwe * derived from this software without specific prior written permission. 16e983955bSuwe * 17e983955bSuwe * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18e983955bSuwe * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19e983955bSuwe * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20e983955bSuwe * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21e983955bSuwe * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22e983955bSuwe * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23e983955bSuwe * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24e983955bSuwe * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25e983955bSuwe * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26e983955bSuwe * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27e983955bSuwe */ 28e983955bSuwe 29e983955bSuwe#include <machine/asm.h> 30e983955bSuwe 31e983955bSuwe 32*533bbdffSuwe#ifdef __ELF__ 33*533bbdffSuwe .hidden __ashlsi3 34*533bbdffSuwe#endif 35*533bbdffSuwe 36*533bbdffSuwe 37e983955bSuweNENTRY(__ashlsi3) 38e983955bSuwe shld r5, r4 39e983955bSuwe rts 40e983955bSuwe mov r4, r0 41