1 dnl SPARC v9 mpn_mul_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)
60 L(b3): addcc %g0, %g0, %i5
72 L(gt3): ldx [up+24], %l3
79 L(b2): addcc %g0, %g0, %o1
90 L(gt2): ldx [up+16], %l3
100 L(b1): addcc %g0, %g0, %o3
106 umulxhi(%l2, v0, %i0)
109 L(gt1): ldx [up+8], %l3
112 umulxhi(%l2, v0, %o5)
115 umulxhi(%l3, v0, %i5)
121 L(b0): addcc %g0, %g0, %o5
126 umulxhi(%l3, v0, %i5)
129 umulxhi(%l0, v0, %o1)
134 L(top): ldx [up+0], %l3 C 0
135 addxccc(%i4, %o5, %i4) C 0
136 mulx %l1, v0, %o2 C 1
138 umulxhi(%l1, v0, %o3) C 2
139 L(lo3): ldx [up+8], %l0 C 2
140 addxccc(%o0, %i5, %o0) C 3
141 mulx %l2, v0, %o4 C 3
143 umulxhi(%l2, v0, %o5) C 4
144 L(lo2): ldx [up+16], %l1 C 5
145 addxccc(%o2, %o1, %o2) C 5
146 mulx %l3, v0, %i4 C 6
148 umulxhi(%l3, v0, %i5) C 7
149 L(lo1): ldx [up+24], %l2 C 7
150 addxccc(%o4, %o3, %o4) C 8
151 mulx %l0, v0, %o0 C 8
153 umulxhi(%l0, v0, %o1) C 9
155 L(lo0): add up, 32, up C 10
159 L(end): addxccc(%i4, %o5, %i4)
162 umulxhi(%l1, v0, %o3)
163 addxccc(%o0, %i5, %o0)
164 L(wd3): mulx %l2, v0, %o4
166 umulxhi(%l2, v0, %o5)
167 addxccc(%o2, %o1, %o2)
168 L(wd2): stx %o2, [rp+16]
169 addxccc(%o4, %o3, %o4)
171 addxc( %g0, %o5, %i0)