]> git.proxmox.com Git - mirror_edk2.git/blame - 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
CommitLineData
4e471bfd 1#------s------------------------------------------------------------------------
2#
d6ebcab7 3# Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
4e471bfd 4#
d6ebcab7 5# This program and the accompanying materials
4e471bfd 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\r
17 .align 2\r
18 .globl ASM_PFX(__aeabi_ulcmp)\r
63ca7402 19 INTERWORK_FUNC(__aeabi_ulcmp)\r
20\r
4e471bfd 21ASM_PFX(__aeabi_ulcmp):\r
22 stmfd sp!, {r4, r5, r8}\r
23 cmp r3, r1\r
24 mov r8, r0\r
25 mov r9, r1\r
26 mov r4, r2\r
27 mov r5, r3\r
28 bls L16\r
29L2:\r
30 mvn r0, #0\r
31L1:\r
32 ldmfd sp!, {r4, r5, r8}\r
33 bx lr\r
34L16:\r
35 beq L17\r
36L4:\r
37 cmp r9, r5\r
38 bhi L7\r
39 beq L18\r
40 cmp r8, r4\r
41L14:\r
42 cmpeq r9, r5\r
43 moveq r0, #0\r
44 beq L1\r
45 b L1\r
46L18:\r
47 cmp r8, r4\r
48 bls L14\r
49L7:\r
50 mov r0, #1\r
51 b L1\r
52L17:\r
53 cmp r2, r0\r
54 bhi L2\r
55 b L4\r
56 \r