]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Library/CompilerIntrinsicsLib/Arm/sourcery.S
Update remaining ARM .S files with INTERWORK_FUNC macro. This is the 2nd half of...
[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 .globl ASM_PFX(__aeabi_ulcmp)
19 INTERWORK_FUNC(__aeabi_ulcmp)
20
21 ASM_PFX(__aeabi_ulcmp):
22 stmfd sp!, {r4, r5, r8}
23 cmp r3, r1
24 mov r8, r0
25 mov r9, r1
26 mov r4, r2
27 mov r5, r3
28 bls L16
29 L2:
30 mvn r0, #0
31 L1:
32 ldmfd sp!, {r4, r5, r8}
33 bx lr
34 L16:
35 beq L17
36 L4:
37 cmp r9, r5
38 bhi L7
39 beq L18
40 cmp r8, r4
41 L14:
42 cmpeq r9, r5
43 moveq r0, #0
44 beq L1
45 b L1
46 L18:
47 cmp r8, r4
48 bls L14
49 L7:
50 mov r0, #1
51 b L1
52 L17:
53 cmp r2, r0
54 bhi L2
55 b L4
56