repo.or.cz
/
coreboot2.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
mb/starlabs/{lite_adl,byte_adl}: Don't select MAINBOARD_HAS_TPM2
[coreboot2.git]
/
src
/
arch
/
arm
/
libgcc
/
ucmpdi2.S
blob
482dd07eada27f72f8e339d07edded2974a37eec
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
/* Based on linux/arch/arm/lib/ucmpdi2.S */
3
4
#if defined __GNUC__
5
6
#include <arch/asm.h>
7
8
#ifdef __ARMEB__
9
#define xh r0
10
#define xl r1
11
#define yh r2
12
#define yl r3
13
#else
14
#define xl r0
15
#define xh r1
16
#define yl r2
17
#define yh r3
18
#endif
19
20
ENTRY(__ucmpdi2)
21
22
cmp xh, yh
23
cmpeq xl, yl
24
movlo r0, #0
25
moveq r0, #1
26
movhi r0, #2
27
mov pc, lr
28
29
ENDPROC(__ucmpdi2)
30
31
ENTRY(__aeabi_ulcmp)
32
33
cmp xh, yh
34
cmpeq xl, yl
35
movlo r0, #-1
36
moveq r0, #0
37
movhi r0, #1
38
mov pc, lr
39
40
ENDPROC(__aeabi_ulcmp)
41
42
#endif