~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to gmp3/mpn/ia64/sub_n.asm

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl  IA-64 mpn_sub_n -- Subtract two limb vectors of the same length > 0 and
 
2
dnl  store difference in a third limb vector.
 
3
 
 
4
dnl  Copyright (C) 2000 Free Software Foundation, Inc.
 
5
 
 
6
dnl  This file is part of the GNU MP Library.
 
7
 
 
8
dnl  The GNU MP Library is free software; you can redistribute it and/or modify
 
9
dnl  it under the terms of the GNU Lesser General Public License as published
 
10
dnl  by the Free Software Foundation; either version 2.1 of the License, or (at
 
11
dnl  your option) any later version.
 
12
 
 
13
dnl  The GNU MP Library is distributed in the hope that it will be useful, but
 
14
dnl  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 
15
dnl  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
 
16
dnl  License for more details.
 
17
 
 
18
dnl  You should have received a copy of the GNU Lesser General Public License
 
19
dnl  along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
 
20
dnl  the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 
21
dnl  MA 02111-1307, USA.
 
22
 
 
23
include(`../config.m4')
 
24
 
 
25
C INPUT PARAMETERS
 
26
C rp = r32
 
27
C s1p = r33
 
28
C s2p = r34
 
29
C n = r35
 
30
 
 
31
ASM_START()
 
32
PROLOGUE(mpn_sub_n)
 
33
        .prologue
 
34
        .save   ar.lc, r2
 
35
                mov     r2 = ar.lc
 
36
        .body
 
37
                add     r35 = -1, r35;;
 
38
                mov     ar.lc = r35
 
39
                cmp.ne  p8, p9 = r0, r0
 
40
.Loop:
 
41
                ld8     r15 = [r33], 8
 
42
                ld8     r17 = [r34], 8;;
 
43
        (p8)    sub     r16 = r15, r17, 1
 
44
        (p9)    sub     r16 = r15, r17
 
45
        (p8)    cmp.leu p8, p9 = r15, r17
 
46
        (p9)    cmp.ltu p8, p9 = r15, r17       ;;
 
47
                st8     [r32] = r16, 8
 
48
                br.cloop.dptk .Loop
 
49
        ;;
 
50
        (p8)    mov     r8 = 1
 
51
        (p9)    mov     r8 = 0
 
52
                mov     ar.lc = r2
 
53
                br.ret.sptk.many b0
 
54
EPILOGUE(mpn_sub_n)
 
55
ASM_END()