]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/arm/lib/_lshrdi3.S
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / arch / arm / lib / _lshrdi3.S
CommitLineData
deec15b3
HS
1/* Copyright 1995, 1996, 1998, 1999, 2000, 2003, 2004, 2005
2 Free Software Foundation, Inc.
3
1a459660
WD
4 * SPDX-License-Identifier: GPL-2.0+
5 */
deec15b3
HS
6
7#ifdef __ARMEB__
8#define al r1
9#define ah r0
10#else
11#define al r0
12#define ah r1
13#endif
14
15.globl __lshrdi3
59b4d747 16.globl __aeabi_llsr
deec15b3 17__lshrdi3:
59b4d747 18__aeabi_llsr:
deec15b3
HS
19
20 subs r3, r2, #32
21 rsb ip, r2, #32
22 movmi al, al, lsr r2
23 movpl al, ah, lsr r3
24 orrmi al, al, ah, lsl ip
25 mov ah, ah, lsr r2
26 mov pc, lr