11.6Suwe/*	$NetBSD: mulsi3.S,v 1.6 2009/01/07 22:15:18 uwe Exp $	*/
21.1Sitojun
31.1Sitojun/*-
41.1Sitojun * Copyright (C) 1999 Tsubai Masanari.  All rights reserved.
51.1Sitojun *
61.1Sitojun * Redistribution and use in source and binary forms, with or without
71.1Sitojun * modification, are permitted provided that the following conditions
81.1Sitojun * are met:
91.1Sitojun * 1. Redistributions of source code must retain the above copyright
101.1Sitojun *    notice, this list of conditions and the following disclaimer.
111.1Sitojun * 2. Redistributions in binary form must reproduce the above copyright
121.1Sitojun *    notice, this list of conditions and the following disclaimer in the
131.1Sitojun *    documentation and/or other materials provided with the distribution.
141.1Sitojun * 3. The name of the author may not be used to endorse or promote products
151.1Sitojun *    derived from this software without specific prior written permission.
161.1Sitojun *
171.1Sitojun * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
181.1Sitojun * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
191.1Sitojun * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
201.1Sitojun * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
211.1Sitojun * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
221.1Sitojun * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
231.1Sitojun * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
241.1Sitojun * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
251.1Sitojun * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
261.1Sitojun * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
271.1Sitojun */
281.1Sitojun
291.2Smsaitoh#include <machine/asm.h>
301.1Sitojun
311.4Suwe
321.6Suwe#ifdef __ELF__
331.6Suwe	.hidden __mulsi3
341.6Suwe#endif
351.6Suwe
361.6Suwe
371.4SuweNENTRY(__mulsi3)
381.1Sitojun	mul.l	r4, r5
391.1Sitojun	rts
401.4Suwe	 sts	macl, r0
41