]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Library/CompilerIntrinsicsLib/Arm/sourcery.S
ArmPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / sourcery.S
1 #------s------------------------------------------------------------------------
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
10 .text
11 .align 2
12 GCC_ASM_EXPORT(__aeabi_ulcmp)
13
14 ASM_PFX(__aeabi_ulcmp):
15 stmfd sp!, {r4, r5, r8}
16 cmp r3, r1
17 mov r8, r0
18 mov r9, r1
19 mov r4, r2
20 mov r5, r3
21 bls L16
22 L2:
23 mvn r0, #0
24 L1:
25 ldmfd sp!, {r4, r5, r8}
26 bx lr
27 L16:
28 beq L17
29 L4:
30 cmp r9, r5
31 bhi L7
32 beq L18
33 cmp r8, r4
34 L14:
35 cmpeq r9, r5
36 moveq r0, #0
37 beq L1
38 b L1
39 L18:
40 cmp r8, r4
41 bls L14
42 L7:
43 mov r0, #1
44 b L1
45 L17:
46 cmp r2, r0
47 bhi L2
48 b L4
49