submul_1.asm revision 1.1.1.1
1dnl S/390-64 mpn_submul_1 2 3dnl Copyright 2011 Free Software Foundation, Inc. 4 5dnl This file is part of the GNU MP Library. 6 7dnl The GNU MP Library is free software; you can redistribute it and/or modify 8dnl it under the terms of the GNU Lesser General Public License as published 9dnl by the Free Software Foundation; either version 3 of the License, or (at 10dnl your option) any later version. 11 12dnl The GNU MP Library is distributed in the hope that it will be useful, but 13dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15dnl License for more details. 16 17dnl You should have received a copy of the GNU Lesser General Public License 18dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 20include(`../config.m4') 21 22C cycles/limb 23C z900 35 24C z990 24 25C z9 ? 26C z10 ? 27C z196 ? 28 29C INPUT PARAMETERS 30define(`rp', `%r2') 31define(`up', `%r3') 32define(`n', `%r4') 33define(`v0', `%r5') 34 35ASM_START() 36PROLOGUE(mpn_submul_1) 37 stmg %r9, %r12, 72(%r15) 38 lghi %r12, 0 39 slgr %r11, %r11 40 41L(top): lg %r1, 0(%r12, up) 42 lg %r10, 0(%r12, rp) 43 mlgr %r0, v0 44 slbgr %r10, %r1 45 slbgr %r9, %r9 46 slgr %r0, %r9 C conditional incr 47 slgr %r10, %r11 48 lgr %r11, %r0 49 stg %r10, 0(%r12, rp) 50 la %r12, 8(%r12) 51 brctg %r4, L(top) 52 53 lgr %r2, %r11 54 slbgr %r9, %r9 55 slgr %r2, %r9 56 57 lmg %r9, %r12, 72(%r15) 58 br %r14 59EPILOGUE() 60