Tizen 2.1 base
[external/gmp.git] / mpn / pa32 / hppa1_1 / umul.asm
1 dnl  Copyright 1999, 2001 Free Software Foundation, Inc.
2
3 dnl  This file is part of the GNU MP Library.
4
5 dnl  The GNU MP Library is free software; you can redistribute it and/or modify
6 dnl  it under the terms of the GNU Lesser General Public License as published
7 dnl  by the Free Software Foundation; either version 3 of the License, or (at
8 dnl  your option) any later version.
9
10 dnl  The GNU MP Library is distributed in the hope that it will be useful, but
11 dnl  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 dnl  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
13 dnl  License for more details.
14
15 dnl  You should have received a copy of the GNU Lesser General Public License
16 dnl  along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.
17
18 include(`../config.m4')
19
20 ASM_START()
21 PROLOGUE(mpn_umul_ppmm)
22 C       .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
36 EPILOGUE()