blob: 3a20b95cb50ba0b48e65be0e4e85d0c68ddd11c7 [file] [log] [blame]
Austin Schuhbb1338c2024-06-15 19:31:16 -07001dnl SPARC mpn_umul_ppmm -- support for longlong.h for non-gcc.
2
3dnl Copyright 1995, 1996, 2000 Free Software Foundation, Inc.
4
5dnl This file is part of the GNU MP Library.
6dnl
7dnl The GNU MP Library is free software; you can redistribute it and/or modify
8dnl it under the terms of either:
9dnl
10dnl * the GNU Lesser General Public License as published by the Free
11dnl Software Foundation; either version 3 of the License, or (at your
12dnl option) any later version.
13dnl
14dnl or
15dnl
16dnl * the GNU General Public License as published by the Free Software
17dnl Foundation; either version 2 of the License, or (at your option) any
18dnl later version.
19dnl
20dnl or both in parallel, as here.
21dnl
22dnl The GNU MP Library is distributed in the hope that it will be useful, but
23dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
24dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
25dnl for more details.
26dnl
27dnl You should have received copies of the GNU General Public License and the
28dnl GNU Lesser General Public License along with the GNU MP Library. If not,
29dnl see https://www.gnu.org/licenses/.
30
31
32include(`../config.m4')
33
34ASM_START()
35PROLOGUE(mpn_umul_ppmm)
36 wr %g0,%o1,%y
37 sra %o2,31,%g2 C Don't move this insn
38 and %o1,%g2,%g2 C Don't move this insn
39 andcc %g0,0,%g1 C Don't move this insn
40 mulscc %g1,%o2,%g1
41 mulscc %g1,%o2,%g1
42 mulscc %g1,%o2,%g1
43 mulscc %g1,%o2,%g1
44 mulscc %g1,%o2,%g1
45 mulscc %g1,%o2,%g1
46 mulscc %g1,%o2,%g1
47 mulscc %g1,%o2,%g1
48 mulscc %g1,%o2,%g1
49 mulscc %g1,%o2,%g1
50 mulscc %g1,%o2,%g1
51 mulscc %g1,%o2,%g1
52 mulscc %g1,%o2,%g1
53 mulscc %g1,%o2,%g1
54 mulscc %g1,%o2,%g1
55 mulscc %g1,%o2,%g1
56 mulscc %g1,%o2,%g1
57 mulscc %g1,%o2,%g1
58 mulscc %g1,%o2,%g1
59 mulscc %g1,%o2,%g1
60 mulscc %g1,%o2,%g1
61 mulscc %g1,%o2,%g1
62 mulscc %g1,%o2,%g1
63 mulscc %g1,%o2,%g1
64 mulscc %g1,%o2,%g1
65 mulscc %g1,%o2,%g1
66 mulscc %g1,%o2,%g1
67 mulscc %g1,%o2,%g1
68 mulscc %g1,%o2,%g1
69 mulscc %g1,%o2,%g1
70 mulscc %g1,%o2,%g1
71 mulscc %g1,%o2,%g1
72 mulscc %g1,0,%g1
73 rd %y,%g3
74 st %g3,[%o0]
75 retl
76 add %g1,%g2,%o0
77EPILOGUE(mpn_umul_ppmm)