]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Library/CompilerIntrinsicsLib/Arm/ashldi3.S
ArmPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / ashldi3.S
1 #------------------------------------------------------------------------------
2 #
3 # Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
4 #
5 # SPDX-License-Identifier: BSD-2-Clause-Patent
6 #
7 #------------------------------------------------------------------------------
8
9 #include <AsmMacroIoLib.h>
10
11 ASM_FUNC(__ashldi3)
12 cmp r2, #31
13 bls L2
14 cmp r2, #63
15 subls r2, r2, #32
16 movls r2, r0, asl r2
17 movhi r2, #0
18 mov r1, r2
19 mov r0, #0
20 bx lr
21 L2:
22 cmp r2, #0
23 rsbne r3, r2, #32
24 movne r3, r0, lsr r3
25 movne r0, r0, asl r2
26 orrne r1, r3, r1, asl r2
27 bx lr