1 /* x86-64 __mpn_lshift --
2 Copyright (C) 2007-2020 Free Software Foundation, Inc.
3 This file is part of the GNU MP Library.
5 The GNU MP Library is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation; either version 2.1 of the License, or (at your
8 option) any later version.
10 The GNU MP Library is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
13 License for more details.
15 You should have received a copy of the GNU Lesser General Public License
16 along with the GNU MP Library; see the file COPYING.LIB. If not,
17 see <https://www.gnu.org/licenses/>. */
20 #include "asm-syntax.h"
35 L(b00): /* n = 4, 8, 12, ... */
45 L(nb00):/* n = 1, 5, 9, ... */
62 L(nb01):/* n = 2, 6, 10, ... */
74 L(le2): shld %cl, %r9, %r8
80 .p2align 4 /* performance critical! */
81 L(b11): /* n = 3, 7, 11, ... */
92 L(top): shld %cl, %r8, %r11
95 L(10): shld %cl, %r9, %r8
98 L(01): shld %cl, %r10, %r9
101 L(00): shld %cl, %r11, %r10
109 L(end): shld %cl, %r8, %r11