Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: gcc/gmp/mpn/x86_64/bdiv_dbm1c.asm

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gmp/mpn/x86_64/atom/aors_n.asm ('k') | gcc/gmp/mpn/x86_64/com_n.asm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gmp/mpn/x86_64/bdiv_dbm1c.asm
diff --git a/gcc/gmp/mpn/x86_64/bdiv_dbm1c.asm b/gcc/gmp/mpn/x86_64/bdiv_dbm1c.asm
deleted file mode 100644
index 8d73b9fe00ef39a92bca8df01eade5220885f9c1..0000000000000000000000000000000000000000
--- a/gcc/gmp/mpn/x86_64/bdiv_dbm1c.asm
+++ /dev/null
@@ -1,98 +0,0 @@
-dnl x86_64 mpn_bdiv_dbm1.
-
-dnl Copyright 2008 Free Software Foundation, Inc.
-
-dnl This file is part of the GNU MP Library.
-
-dnl The GNU MP Library is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU Lesser General Public License as published
-dnl by the Free Software Foundation; either version 3 of the License, or (at
-dnl your option) any later version.
-
-dnl The GNU MP Library is distributed in the hope that it will be useful, but
-dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
-dnl License for more details.
-
-dnl You should have received a copy of the GNU Lesser General Public License
-dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
-
-include(`../config.m4')
-
-C cycles/limb
-C K8,K9: 2.25
-C K10: ?
-C P4: 12.5
-C P6-15 (Core2): 4.0
-C P6-28 (Atom): 20
-
-C TODO
-C * Do proper 4-way feed-in instead of the current epilogue
-
-C INPUT PARAMETERS shared
-define(`qp', `%rdi')
-define(`up', `%rsi')
-define(`n', `%rdx')
-define(`bd', `%rcx')
-define(`cy', `%r8')
-
-
-ASM_START()
- TEXT
- ALIGN(16)
-PROLOGUE(mpn_bdiv_dbm1c)
- mov (%rsi), %rax
- mov %rdx, %r9 C n
-
- mul %rcx
- sub %rax, %r8
- mov %r8, (%rdi)
- sbb %rdx, %r8
-
- lea (%rsi,%r9,8), %rsi
- lea (%rdi,%r9,8), %rdi
- neg %r9
- add $4, %r9
- jns L(end)
- ALIGN(16)
-L(top):
- mov -24(%rsi,%r9,8), %rax
- mul %rcx
- sub %rax, %r8
- mov %r8, -24(%rdi,%r9,8)
- sbb %rdx, %r8
-L(3):
- mov -16(%rsi,%r9,8), %rax
- mul %rcx
- sub %rax, %r8
- mov %r8, -16(%rdi,%r9,8)
- sbb %rdx, %r8
-L(2):
- mov -8(%rsi,%r9,8), %rax
- mul %rcx
- sub %rax, %r8
- mov %r8, -8(%rdi,%r9,8)
- sbb %rdx, %r8
-L(1):
- mov (%rsi,%r9,8), %rax
- mul %rcx
- sub %rax, %r8
- mov %r8, (%rdi,%r9,8)
- sbb %rdx, %r8
-
- add $4, %r9
- js L(top)
-L(end):
- je L(3x)
- cmp $2, %r9
- jg L(ret)
- mov $-1, %r9
- je L(1)
- jmp L(2)
-L(3x):
- dec %r9
- jmp L(3)
-
-L(ret): mov %r8, %rax
- ret
-EPILOGUE()
« no previous file with comments | « gcc/gmp/mpn/x86_64/atom/aors_n.asm ('k') | gcc/gmp/mpn/x86_64/com_n.asm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698