1 /* Pentium __mpn_sub_n -- Subtract two limb vectors of the same length > 0
2 and store difference in a third limb vector.
3 Copyright (C) 1992-2016 Free Software Foundation, Inc.
4 This file is part of the GNU MP Library.
6 The GNU MP Library is free software; you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as published by
8 the Free Software Foundation; either version 2.1 of the License, or (at your
9 option) any later version.
11 The GNU MP Library is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public License
17 along with the GNU MP Library; see the file COPYING.LIB. If not,
18 see <http://www.gnu.org/licenses/>. */
21 #include "asm-syntax.h"
23 #define PARMS 4+16 /* space for 4 saved regs */
33 cfi_adjust_cfa_offset (4)
35 cfi_adjust_cfa_offset (4)
37 cfi_adjust_cfa_offset (4)
39 cfi_adjust_cfa_offset (4)
42 cfi_rel_offset (edi, 12)
44 cfi_rel_offset (esi, 8)
46 cfi_rel_offset (ebx, 0)
49 cfi_rel_offset (ebp, 4)
55 testl %ecx,%ecx /* zero carry flag */
58 cfi_adjust_cfa_offset (4)
61 L(oop): movl 28(%edi),%eax /* fetch destination cache line */
64 L(1): movl (%esi),%eax
73 L(2): movl 8(%esi),%eax
82 L(3): movl 16(%esi),%eax
91 L(4): movl 24(%esi),%eax
106 cfi_adjust_cfa_offset (-4)
108 decl %edx /* test %edx w/o clobbering carry */
130 cfi_adjust_cfa_offset (-4)
133 cfi_adjust_cfa_offset (-4)
136 cfi_adjust_cfa_offset (-4)
139 cfi_adjust_cfa_offset (-4)