]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Library/CompilerIntrinsicsLib/Arm/sourcery.S
ArmPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / sourcery.S
CommitLineData
3402aac7 1#------s------------------------------------------------------------------------\r
a6caee65 2#\r
3# Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>\r
4#\r
4059386c 5# SPDX-License-Identifier: BSD-2-Clause-Patent\r
a6caee65 6#\r
7#------------------------------------------------------------------------------\r
8\r
9\r
4e471bfd 10 .text\r
11 .align 2\r
1bfda055 12 GCC_ASM_EXPORT(__aeabi_ulcmp)\r
63ca7402 13\r
4e471bfd 14ASM_PFX(__aeabi_ulcmp):\r
15 stmfd sp!, {r4, r5, r8}\r
16 cmp r3, r1\r
17 mov r8, r0\r
18 mov r9, r1\r
19 mov r4, r2\r
20 mov r5, r3\r
21 bls L16\r
22L2:\r
23 mvn r0, #0\r
24L1:\r
25 ldmfd sp!, {r4, r5, r8}\r
26 bx lr\r
27L16:\r
28 beq L17\r
29L4:\r
30 cmp r9, r5\r
31 bhi L7\r
32 beq L18\r
33 cmp r8, r4\r
34L14:\r
35 cmpeq r9, r5\r
36 moveq r0, #0\r
37 beq L1\r
38 b L1\r
39L18:\r
40 cmp r8, r4\r
41 bls L14\r
42L7:\r
43 mov r0, #1\r
44 b L1\r
45L17:\r
46 cmp r2, r0\r
47 bhi L2\r
48 b L4\r
3402aac7 49\r