xref: /netbsd-src/external/lgpl3/gmp/dist/mpn/pa32/hppa1_1/umul.asm (revision 501cd18a74d52bfcca7d9e7e3b0d472bbc870558)
1dnl  Copyright 1999, 2001 Free Software Foundation, Inc.
2
3dnl  This file is part of the GNU MP Library.
4
5dnl  The GNU MP Library is free software; you can redistribute it and/or modify
6dnl  it under the terms of the GNU Lesser General Public License as published
7dnl  by the Free Software Foundation; either version 3 of the License, or (at
8dnl  your option) any later version.
9
10dnl  The GNU MP Library is distributed in the hope that it will be useful, but
11dnl  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12dnl  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
13dnl  License for more details.
14
15dnl  You should have received a copy of the GNU Lesser General Public License
16dnl  along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.
17
18include(`../config.m4')
19
20ASM_START()
21PROLOGUE(mpn_umul_ppmm)
22C	.callinfo frame=64,no_calls
23
24	ldo	64(%r30),%r30
25	stw	%r25,-16(0,%r30)
26	fldws	-16(0,%r30),%fr22R
27	stw	%r24,-16(0,%r30)
28	fldws	-16(0,%r30),%fr22L
29	xmpyu	%fr22R,%fr22L,%fr22
30	fstds	%fr22,-16(0,%r30)
31	ldw	-16(0,%r30),%r28
32	ldw	-12(0,%r30),%r29
33	stw	%r29,0(0,%r26)
34	bv	0(%r2)
35	ldo	-64(%r30),%r30
36EPILOGUE()
37