]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Library/CompilerIntrinsicsLib/Arm/ucmpdi2.S
ArmPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / ucmpdi2.S
1 #------------------------------------------------------------------------------
2 #
3 # Copyright (c) 2008 - 2010, 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(__ucmpdi2)
12 stmfd sp!, {r4, r5, r8, lr}
13 cmp r1, r3
14 mov r8, r0
15 mov r4, r2
16 mov r5, r3
17 bcc L2
18 bhi L4
19 cmp r0, r2
20 bcc L2
21 movls r0, #1
22 bls L8
23 b L4
24 L2:
25 mov r0, #0
26 b L8
27 L4:
28 mov r0, #2
29 L8:
30 ldmfd sp!, {r4, r5, r8, pc}