Home | History | Annotate | Line # | Download | only in esame
      1      1.1  mrg dnl  S/390-32 mpn_addmul_1 for systems with MLR instruction
      2      1.1  mrg 
      3      1.1  mrg dnl  Copyright 2011 Free Software Foundation, Inc.
      4      1.1  mrg 
      5      1.1  mrg dnl  This file is part of the GNU MP Library.
      6  1.1.1.2  mrg dnl
      7      1.1  mrg dnl  The GNU MP Library is free software; you can redistribute it and/or modify
      8  1.1.1.2  mrg dnl  it under the terms of either:
      9  1.1.1.2  mrg dnl
     10  1.1.1.2  mrg dnl    * the GNU Lesser General Public License as published by the Free
     11  1.1.1.2  mrg dnl      Software Foundation; either version 3 of the License, or (at your
     12  1.1.1.2  mrg dnl      option) any later version.
     13  1.1.1.2  mrg dnl
     14  1.1.1.2  mrg dnl  or
     15  1.1.1.2  mrg dnl
     16  1.1.1.2  mrg dnl    * the GNU General Public License as published by the Free Software
     17  1.1.1.2  mrg dnl      Foundation; either version 2 of the License, or (at your option) any
     18  1.1.1.2  mrg dnl      later version.
     19  1.1.1.2  mrg dnl
     20  1.1.1.2  mrg dnl  or both in parallel, as here.
     21  1.1.1.2  mrg dnl
     22      1.1  mrg dnl  The GNU MP Library is distributed in the hope that it will be useful, but
     23      1.1  mrg dnl  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
     24  1.1.1.2  mrg dnl  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
     25  1.1.1.2  mrg dnl  for more details.
     26  1.1.1.2  mrg dnl
     27  1.1.1.2  mrg dnl  You should have received copies of the GNU General Public License and the
     28  1.1.1.2  mrg dnl  GNU Lesser General Public License along with the GNU MP Library.  If not,
     29  1.1.1.2  mrg dnl  see https://www.gnu.org/licenses/.
     30      1.1  mrg 
     31      1.1  mrg include(`../config.m4')
     32      1.1  mrg 
     33      1.1  mrg C            cycles/limb
     34      1.1  mrg C z900		18.5
     35      1.1  mrg C z990		10
     36      1.1  mrg C z9		 ?
     37      1.1  mrg C z10		 ?
     38      1.1  mrg C z196		 ?
     39      1.1  mrg 
     40      1.1  mrg C INPUT PARAMETERS
     41      1.1  mrg define(`rp',	`%r2')
     42      1.1  mrg define(`up',	`%r3')
     43      1.1  mrg define(`n',	`%r4')
     44      1.1  mrg define(`v0',	`%r5')
     45      1.1  mrg 
     46      1.1  mrg define(`z',	`%r9')
     47      1.1  mrg 
     48      1.1  mrg ASM_START()
     49      1.1  mrg PROLOGUE(mpn_addmul_1)
     50      1.1  mrg 	stm	%r9, %r12, 36(%r15)
     51  1.1.1.2  mrg 	lhi	%r12, 0			C zero index register
     52      1.1  mrg 	ahi	%r12, 0			C clear carry fla
     53      1.1  mrg 	lhi	%r11, 0			C clear carry limb
     54      1.1  mrg 	lhi	z, 0			C clear carry limb
     55      1.1  mrg 
     56      1.1  mrg L(top):	l	%r1, 0(%r12,up)
     57      1.1  mrg 	l	%r10, 0(%r12,rp)
     58      1.1  mrg 	mlr	%r0, v0
     59      1.1  mrg 	alcr	%r1, %r10
     60      1.1  mrg 	alcr	%r0, z
     61      1.1  mrg 	alr	%r1, %r11
     62      1.1  mrg 	lr	%r11, %r0
     63      1.1  mrg 	st	%r1, 0(%r12,rp)
     64      1.1  mrg 	la	%r12, 4(%r12)
     65      1.1  mrg 	brct	n, L(top)
     66      1.1  mrg 
     67      1.1  mrg 	lhi	%r2, 0
     68      1.1  mrg 	alcr	%r2, %r11
     69      1.1  mrg 
     70      1.1  mrg 	lm	%r9, %r12, 36(%r15)
     71      1.1  mrg 	br	%r14
     72      1.1  mrg EPILOGUE()
     73