1dnl VAX mpn_lshift -- left shift. 2 3dnl Copyright 1999, 2000, 2001, 2012 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 22ASM_START() 23PROLOGUE(mpn_lshift) 24 .word 0x1c0 25 movl 4(ap), r7 26 movl 8(ap), r6 27 movl 12(ap), r1 28 movl 16(ap), r8 29 30 moval (r6)[r1], r6 31 moval (r7)[r1], r7 32 clrl r3 33 movl -(r6), r2 34 ashq r8, r2, r4 35 movl r5, r0 36 movl r2, r3 37 decl r1 38 jeql L(end) 39 40L(top): movl -(r6), r2 41 ashq r8, r2, r4 42 movl r5, -(r7) 43 movl r2, r3 44 sobgtr r1, L(top) 45 46L(end): movl r4, -4(r7) 47 ret 48EPILOGUE() 49