]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Library/CompilerIntrinsicsLib/Arm/sourcery.S
ArmPlatformPkg: Remove PcdStandalone from Sec module and Introduce ArmPlatformSecExtr...
[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 # This program and the accompanying materials
6 # are licensed and made available under the terms and conditions of the BSD License
7 # which accompanies this distribution. The full text of the license may be found at
8 # http://opensource.org/licenses/bsd-license.php
9 #
10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 #
13 #------------------------------------------------------------------------------
14
15
16 .text
17 .align 2
18 GCC_ASM_EXPORT(__aeabi_ulcmp)
19
20 ASM_PFX(__aeabi_ulcmp):
21 stmfd sp!, {r4, r5, r8}
22 cmp r3, r1
23 mov r8, r0
24 mov r9, r1
25 mov r4, r2
26 mov r5, r3
27 bls L16
28 L2:
29 mvn r0, #0
30 L1:
31 ldmfd sp!, {r4, r5, r8}
32 bx lr
33 L16:
34 beq L17
35 L4:
36 cmp r9, r5
37 bhi L7
38 beq L18
39 cmp r8, r4
40 L14:
41 cmpeq r9, r5
42 moveq r0, #0
43 beq L1
44 b L1
45 L18:
46 cmp r8, r4
47 bls L14
48 L7:
49 mov r0, #1
50 b L1
51 L17:
52 cmp r2, r0
53 bhi L2
54 b L4
55