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