1 dnl SuperSPARC mpn_udiv_qrnnd division support, used from longlong.h.
2 dnl This is for SuperSPARC only, to compensate for its semi-functional
5 dnl Copyright (C) 1993, 1994, 1996, 2000 Free Software Foundation, Inc.
7 dnl This file is part of the GNU MP Library.
9 dnl The GNU MP Library is free software; you can redistribute it and/or modify
10 dnl it under the terms of the GNU Lesser General Public License as published
11 dnl by the Free Software Foundation; either version 2.1 of the License, or (at
12 dnl your option) any later version.
14 dnl The GNU MP Library is distributed in the hope that it will be useful, but
15 dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
17 dnl License for more details.
19 dnl You should have received a copy of the GNU Lesser General Public License
20 dnl along with the GNU MP Library; see the file COPYING.LIB. If not, write to
21 dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22 dnl MA 02111-1307, USA.
25 include(`../config.m4')
43 L(C0): .double 0r4294967296
44 L(C1): .double 0r2147483648
46 PROLOGUE(mpn_udiv_qrnnd)
52 `L(pc): call L(getpc) C put address of this insn in %o7
53 ldd [%o7+L(C0)-L(pc)],%f8',
54 ` sethi %hi(L(C0)),%o7
55 ldd [%o7+%lo(L(C0))],%f8')
82 ` ldd [%o7+L(C1)-L(pc)],%f4',
83 ` sethi %hi(L(C1)),%o7
84 ldd [%o7+%lo(L(C1))],%f4')
98 sethi %hi(-2147483648),%g2
122 EPILOGUE(mpn_udiv_qrnnd)