1
2
3
4
5
6
7
8
9
10
11
12
13#include <linux/linkage.h>
14
15#ifdef __ARMEB__
16#define xh r0
17#define xl r1
18#define yh r2
19#define yl r3
20#else
21#define xl r0
22#define xh r1
23#define yl r2
24#define yh r3
25#endif
26
27ENTRY(__ucmpdi2)
28
29 cmp xh, yh
30 cmpeq xl, yl
31 movlo r0,
32 moveq r0,
33 movhi r0,
34 mov pc, lr
35
36ENDPROC(__ucmpdi2)
37
38#ifdef CONFIG_AEABI
39
40ENTRY(__aeabi_ulcmp)
41
42 cmp xh, yh
43 cmpeq xl, yl
44 movlo r0,
45 moveq r0,
46 movhi r0,
47 mov pc, lr
48
49ENDPROC(__aeabi_ulcmp)
50
51#endif
52
53