1dnl  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.
6
7dnl  The GNU MP Library is free software; you can redistribute it and/or modify
8dnl  it under the terms of the GNU Lesser General Public License as published
9dnl  by the Free Software Foundation; either version 3 of the License, or (at
10dnl  your option) any later version.
11
12dnl  The GNU MP Library is distributed in the hope that it will be useful, but
13dnl  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14dnl  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
15dnl  License for more details.
16
17dnl  You should have received a copy of the GNU Lesser General Public License
18dnl  along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.
19
20
21include(`../config.m4')
22
23ASM_START()
24PROLOGUE(mpn_umul_ppmm)
25	wr	%g0,%o1,%y
26	sra	%o2,31,%g2	C Don't move this insn
27	and	%o1,%g2,%g2	C Don't move this insn
28	andcc	%g0,0,%g1	C Don't move this insn
29	mulscc	%g1,%o2,%g1
30	mulscc	%g1,%o2,%g1
31	mulscc	%g1,%o2,%g1
32	mulscc	%g1,%o2,%g1
33	mulscc	%g1,%o2,%g1
34	mulscc	%g1,%o2,%g1
35	mulscc	%g1,%o2,%g1
36	mulscc	%g1,%o2,%g1
37	mulscc	%g1,%o2,%g1
38	mulscc	%g1,%o2,%g1
39	mulscc	%g1,%o2,%g1
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,0,%g1
62	rd	%y,%g3
63	st	%g3,[%o0]
64	retl
65	add	%g1,%g2,%o0
66EPILOGUE(mpn_umul_ppmm)
67