1 ; HP-PA __mpn_lshift --
2 ; This is optimized for the PA7100, where is runs at 3.25 cycles/limb
4 ; Copyright (C) 1992, 1994 Free Software Foundation, Inc.
6 ; This file is part of the GNU MP Library.
8 ; The GNU MP Library is free software; you can redistribute it and/or modify
9 ; it under the terms of the GNU Library General Public License as published by
10 ; the Free Software Foundation; either version 2 of the License, or (at your
11 ; option) any later version.
13 ; The GNU MP Library is distributed in the hope that it will be useful, but
14 ; WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 ; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
16 ; License for more details.
18 ; You should have received a copy of the GNU Library General Public License
19 ; along with the GNU MP Library; see the file COPYING.LIB. If not, write to
20 ; the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
34 .callinfo frame=64,no_calls
39 ldws,mb -4(0,%r25),%r22
42 addib,= -1,%r24,L$0004
43 vshd %r0,%r22,%r28 ; compute carry out limb
44 ldws,mb -4(0,%r25),%r29
45 addib,<= -5,%r24,L$rest
48 L$loop ldws,mb -4(0,%r25),%r22
49 stws,mb %r20,-4(0,%r26)
51 ldws,mb -4(0,%r25),%r29
52 stws,mb %r20,-4(0,%r26)
54 ldws,mb -4(0,%r25),%r22
55 stws,mb %r20,-4(0,%r26)
57 ldws,mb -4(0,%r25),%r29
58 stws,mb %r20,-4(0,%r26)
59 addib,> -4,%r24,L$loop
62 L$rest addib,= 4,%r24,L$end1
64 L$eloop ldws,mb -4(0,%r25),%r22
65 stws,mb %r20,-4(0,%r26)
66 addib,<= -1,%r24,L$end2
68 ldws,mb -4(0,%r25),%r29
69 stws,mb %r20,-4(0,%r26)
70 addib,> -1,%r24,L$eloop
73 L$end1 stws,mb %r20,-4(0,%r26)
77 L$end2 stws,mb %r20,-4(0,%r26)
78 L$0004 vshd %r22,%r0,%r20