Loading...
1/*
2 * linux/arch/arm/lib/ucmpdi2.S
3 *
4 * Author: Nicolas Pitre
5 * Created: Oct 19, 2005
6 * Copyright: Monta Vista Software, Inc.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
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, #0
32 moveq r0, #1
33 movhi r0, #2
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, #-1
45 moveq r0, #0
46 movhi r0, #1
47 mov pc, lr
48
49ENDPROC(__aeabi_ulcmp)
50
51#endif
52
1/*
2 * linux/arch/arm/lib/ucmpdi2.S
3 *
4 * Author: Nicolas Pitre
5 * Created: Oct 19, 2005
6 * Copyright: Monta Vista Software, Inc.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */
12
13#include <linux/linkage.h>
14#include <asm/assembler.h>
15
16#ifdef __ARMEB__
17#define xh r0
18#define xl r1
19#define yh r2
20#define yl r3
21#else
22#define xl r0
23#define xh r1
24#define yl r2
25#define yh r3
26#endif
27
28ENTRY(__ucmpdi2)
29
30 cmp xh, yh
31 cmpeq xl, yl
32 movlo r0, #0
33 moveq r0, #1
34 movhi r0, #2
35 ret lr
36
37ENDPROC(__ucmpdi2)
38
39#ifdef CONFIG_AEABI
40
41ENTRY(__aeabi_ulcmp)
42
43 cmp xh, yh
44 cmpeq xl, yl
45 movlo r0, #-1
46 moveq r0, #0
47 movhi r0, #1
48 ret lr
49
50ENDPROC(__aeabi_ulcmp)
51
52#endif
53