dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by the Free
dnl Software Foundation; either version 3 of the License, or (at your
dnl option) any later version.
dnl
dnl or
dnl
dnl * the GNU General Public License as published by the Free Software
dnl Foundation; either version 2 of the License, or (at your option) any
dnl later version.
dnl
dnl or both in parallel, as here.
dnl
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 General Public License
dnl for more details.
dnl
dnl You should have received copies of the GNU General Public License and the
dnl GNU Lesser General Public License along with the GNU MP Library. If not,
dnl see https://www.gnu.org/licenses/.
dnl This runs at 2 cycles/limb on PA8000 and 1.6875 cycles/limb on PA8500. It
dnl should be possible to reach the cache bandwidth 1.5 cycles/limb at least
dnl with PA8500. The problem now is stalling of the first ADD,DC after LDO,
dnl where the processor gets confused about where carry comes from.
ifdef(`HAVE_ABI_2_0w',
` .level 2.0w ',` .level 2.0 ')
PROLOGUE(func_nc) ifdef(`HAVE_ABI_2_0w',
` b L(com) nop ',` b L(com)
ldw -52(%r30), %r22 ')
EPILOGUE()
PROLOGUE(func)
ldi 0, %r22
LDEF(com) sub %r0, n, %r21
depw,z %r21, 30, 3, %r28 C r28 = 2 * (-n & 7)
depw,z %r21, 28, 3, %r21 C r21 = 8 * (-n & 7) sub up, %r21, up C offset up sub vp, %r21, vp C offset vp sub rp, %r21, rp C offset rp
blr %r28, %r0 C branch into loop
INITCY
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.