1 ! SPARC v9 64-bit VIS3 __mpn_add_n -- Add two limb vectors of the same length > 0 and
2 ! store sum in a third limb vector.
4 ! Copyright (C) 2013-2014 Free Software Foundation, Inc.
5 ! This file is part of the GNU C Library.
6 ! Contributed by David S. Miller <davem@davemloft.net>
8 ! The GNU C Library is free software; you can redistribute it and/or
9 ! modify it under the terms of the GNU Lesser General Public
10 ! License as published by the Free Software Foundation; either
11 ! version 2.1 of the License, or (at your option) any later version.
13 ! The GNU C Library is distributed in the hope that it will be useful,
14 ! but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 ! Lesser General Public License for more details.
18 ! You should have received a copy of the GNU Lesser General Public
19 ! License along with the GNU C Library; if not, see
20 ! <http://www.gnu.org/licenses/>.
33 .register %g2,#scratch
34 .register %g3,#scratch
35 ENTRY(__mpn_add_n_vis3)
41 ldx [s2_ptr + 0x00], tmp1
42 add s2_ptr, 0x10, s2_ptr
43 ldx [s1_ptr + 0x00], tmp2
44 add s1_ptr, 0x10, s1_ptr
45 ldx [s2_ptr - 0x08], tmp3
46 add res_ptr, 0x10, res_ptr
47 ldx [s1_ptr - 0x08], tmp4
49 addxccc tmp1, tmp2, tmp1
50 stx tmp1, [res_ptr - 0x10]
51 addxccc tmp3, tmp4, tmp3
53 stx tmp3, [res_ptr - 0x08]
59 ldx [s2_ptr + 0x00], tmp1
60 ldx [s1_ptr + 0x00], tmp2
61 addxccc tmp1, tmp2, tmp1
62 stx tmp1, [res_ptr + 0x00]