~ubuntu-branches/ubuntu/intrepid/ecl/intrepid

« back to all changes in this revision

Viewing changes to src/gmp/mpn/pa64/lshift.asm

  • Committer: Bazaar Package Importer
  • Author(s): Peter Van Eynde
  • Date: 2007-04-09 11:51:51 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070409115151-ql8cr0kalzx1jmla
Tags: 0.9i-20070324-2
Upload to unstable. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
dnl  This file is part of the GNU MP Library.
6
6
 
7
7
dnl  The GNU MP Library is free software; you can redistribute it and/or modify
8
 
dnl  it under the terms of the GNU Lesser General Public License as published by
9
 
dnl  the Free Software Foundation; either version 2.1 of the License, or (at your
10
 
dnl  option) any later version.
 
8
dnl  it under the terms of the GNU Lesser General Public License as published
 
9
dnl  by the Free Software Foundation; either version 2.1 of the License, or (at
 
10
dnl  your option) any later version.
11
11
 
12
12
dnl  The GNU MP Library is distributed in the hope that it will be useful, but
13
13
dnl  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15
15
dnl  License for more details.
16
16
 
17
17
dnl  You should have received a copy of the GNU Lesser General Public License
18
 
dnl  along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
19
 
dnl  the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
20
 
dnl  MA 02111-1307, USA.
 
18
dnl  along with the GNU MP Library; see the file COPYING.LIB.  If not, write
 
19
dnl  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
20
dnl  Boston, MA 02110-1301, USA.
21
21
 
22
22
 
23
23
dnl  This runs at 1.5 cycles/limb on PA8000 and 1.0 cycles/limb on PA8500.
65
65
        b               L(7)
66
66
        copy            %r21, %r20
67
67
 
68
 
L(loop)
69
 
L(0)    ldd             -16(up), %r20
 
68
LDEF(loop)
 
69
LDEF(0) ldd             -16(up), %r20
70
70
        shrpd           %r21, %r20, %sar, %r21
71
71
        std             %r21, -8(rp)
72
 
L(7)    ldd             -24(up), %r21
 
72
LDEF(7) ldd             -24(up), %r21
73
73
        shrpd           %r20, %r21, %sar, %r20
74
74
        std             %r20, -16(rp)
75
 
L(6)    ldd             -32(up), %r20
 
75
LDEF(6) ldd             -32(up), %r20
76
76
        shrpd           %r21, %r20, %sar, %r21
77
77
        std             %r21, -24(rp)
78
 
L(5)    ldd             -40(up), %r21
 
78
LDEF(5) ldd             -40(up), %r21
79
79
        shrpd           %r20, %r21, %sar, %r20
80
80
        std             %r20, -32(rp)
81
 
L(4)    ldd             -48(up), %r20
 
81
LDEF(4) ldd             -48(up), %r20
82
82
        shrpd           %r21, %r20, %sar, %r21
83
83
        std             %r21, -40(rp)
84
 
L(3)    ldd             -56(up), %r21
 
84
LDEF(3) ldd             -56(up), %r21
85
85
        shrpd           %r20, %r21, %sar, %r20
86
86
        std             %r20, -48(rp)
87
 
L(2)    ldd             -64(up), %r20
 
87
LDEF(2) ldd             -64(up), %r20
88
88
        shrpd           %r21, %r20, %sar, %r21
89
89
        std             %r21, -56(rp)
90
 
L(1)    ldd             -72(up), %r21
 
90
LDEF(1) ldd             -72(up), %r21
91
91
        ldo             -64(up), up
92
92
        shrpd           %r20, %r21, %sar, %r20
93
93
        std             %r20, -64(rp)
94
94
        addib,>         -8, n, L(loop)
95
95
        ldo             -64(rp), rp
96
96
 
97
 
L(end)  shrpd           %r21, %r0, %sar, %r21
 
97
LDEF(end)
 
98
        shrpd           %r21, %r0, %sar, %r21
98
99
        std             %r21, -8(rp)
99
100
        bve             (%r2)
100
101
ifdef(`HAVE_ABI_2_0w',