1 /* SPDX-License-Identifier: GPL-2.0 */ << 2 /* 1 /* 3 * ashldi3.S: GCC emits these for certain dr 2 * ashldi3.S: GCC emits these for certain drivers playing 4 * with long longs. 3 * with long longs. 5 * 4 * 6 * Copyright (C) 1999 David S. Miller (davem@r 5 * Copyright (C) 1999 David S. Miller (davem@redhat.com) 7 */ 6 */ 8 7 9 #include <linux/export.h> << 10 #include <linux/linkage.h> 8 #include <linux/linkage.h> >> 9 #include <asm/export.h> 11 10 12 .text 11 .text 13 ENTRY(__ashldi3) 12 ENTRY(__ashldi3) 14 cmp %o2, 0 13 cmp %o2, 0 15 be 9f 14 be 9f 16 mov 0x20, %g2 15 mov 0x20, %g2 17 16 18 sub %g2, %o2, %g2 17 sub %g2, %o2, %g2 19 cmp %g2, 0 18 cmp %g2, 0 20 bg 7f 19 bg 7f 21 sll %o0, %o2, %g3 20 sll %o0, %o2, %g3 22 21 23 neg %g2 22 neg %g2 24 clr %o5 23 clr %o5 25 b 8f 24 b 8f 26 sll %o1, %g2, %o4 25 sll %o1, %g2, %o4 27 7: 26 7: 28 srl %o1, %g2, %g2 27 srl %o1, %g2, %g2 29 sll %o1, %o2, %o5 28 sll %o1, %o2, %o5 30 or %g3, %g2, %o4 29 or %g3, %g2, %o4 31 8: 30 8: 32 mov %o4, %o0 31 mov %o4, %o0 33 mov %o5, %o1 32 mov %o5, %o1 34 9: 33 9: 35 retl 34 retl 36 nop 35 nop 37 ENDPROC(__ashldi3) 36 ENDPROC(__ashldi3) 38 EXPORT_SYMBOL(__ashldi3) 37 EXPORT_SYMBOL(__ashldi3)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.