RT-AC66 3.0.0.4.374.130 core
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / arch / arm / lib / ucmpdi2.S
blobf76de07ac1825f77ec045ff6c01c1179bd3c2378
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  */
13 #include <linux/linkage.h>
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
27 ENTRY(__ucmpdi2)
29         cmp     xh, yh
30         cmpeq   xl, yl
31         movlo   r0, #0
32         moveq   r0, #1
33         movhi   r0, #2
34         mov     pc, lr
36 #ifdef CONFIG_AEABI
38 ENTRY(__aeabi_ulcmp)
40         cmp     xh, yh
41         cmpeq   xl, yl
42         movlo   r0, #-1
43         moveq   r0, #0
44         movhi   r0, #1
45         mov     pc, lr
47 #endif