1 dnl SPARC v9 mpn_submul_1 for T3
/T4
/T5.
3 dnl Contributed to the GNU project by David Miller
and Torbjörn Granlund.
5 dnl Copyright
2013 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
either:
12 dnl
* the GNU Lesser General
Public License as published by the Free
13 dnl Software Foundation
; either version 3 of the License, or (at your
14 dnl option
) any later version.
18 dnl
* the GNU General
Public License as published by the Free Software
19 dnl Foundation
; either version 2 of the License, or (at your option) any
22 dnl
or both
in parallel
, as here.
24 dnl The GNU MP Library is distributed
in the hope that it will be useful
, but
25 dnl WITHOUT ANY WARRANTY
; without even the implied warranty of MERCHANTABILITY
26 dnl
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License
29 dnl You should have received copies of the GNU General
Public License
and the
30 dnl GNU Lesser General
Public License along with the GNU MP Library. If
not,
31 dnl see
https://www.gnu.
org/licenses
/.
33 include(`..
/config.m4
')
46 REGISTER(%g2,#scratch)
47 REGISTER(%g3,#scratch)
48 PROLOGUE(mpn_submul_1)
61 L(b10): add up, 16, up
70 L(gt2): ldx [up+0], %o0
74 L(b00): add rp, -16, rp
101 L(b11): add up, 24, up
105 umulxhi(%g1, v0, %l3)
109 umulxhi(%g4, v0, %l5)
114 L(top): ldx [up+0], %o0
115 addxccc(%g3, %l2, %g1)
117 addxc( %g0, %l3, %g3)
120 umulxhi(%o1, v0, %l7)
122 L(lo2): ldx [up+8], %o1
123 addxccc(%g3, %l4, %g1)
125 addxc( %g0, %l5, %g3)
128 umulxhi(%o0, v0, %l1)
130 L(lo1): ldx [up+16], %o0
131 addxccc(%g3, %l6, %g1)
133 addxc( %g0, %l7, %g3)
136 umulxhi(%o1, v0, %l3)
138 L(lo0): ldx [up+24], %o1
139 addxccc(%g3, %l0, %g1)
141 addxc( %g0, %l1, %g3)
144 umulxhi(%o0, v0, %l5)
151 L(end): addxccc(%g3, %l2, %g1)
153 addxc( %g0, %l3, %g3)
156 umulxhi(%o1, v0, %l7)
158 L(wd2): addxccc(%g3, %l4, %g1)
160 addxc( %g0, %l5, %g3)
163 L(wd1): addxccc(%g3, %l6, %g1)
164 addxc( %g0, %l7, %g3)
167 addxc( %g0, %g3, %i0)