1 /* Miscellaneous BPABI functions. ARMv6M implementation
3 Copyright (C) 2006, 2008 Free Software Foundation, Inc.
4 Contributed by CodeSourcery.
6 This file is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 In addition to the permissions in the GNU General Public License, the
12 Free Software Foundation gives you unlimited permission to link the
13 compiled version of this file into combinations with other programs,
14 and to distribute those combinations without any restriction coming
15 from the use of this file. (The General Public License restrictions
16 do apply in other respects; for example, they cover modification of
17 the file, and distribution when not linked into a combine
20 This file is distributed in the hope that it will be useful, but
21 WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 General Public License for more details.
25 You should have received a copy of the GNU General Public License
26 along with this program; see the file COPYING. If not, write to
27 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
28 Boston, MA 02110-1301, USA. */
55 #endif /* L_aeabi_lcmp */
59 FUNC_START aeabi_ulcmp
75 #endif /* L_aeabi_ulcmp */
77 #ifdef L_aeabi_ldivmod
79 FUNC_START aeabi_ldivmod
84 bl SYM(__gnu_ldivmod_helper)
90 FUNC_END aeabi_ldivmod
92 #endif /* L_aeabi_ldivmod */
94 #ifdef L_aeabi_uldivmod
96 FUNC_START aeabi_uldivmod
101 bl SYM(__gnu_uldivmod_helper)
107 FUNC_END aeabi_uldivmod
109 #endif /* L_aeabi_uldivmod */
111 #ifdef L_arm_addsubsf3
113 FUNC_START aeabi_frsub
124 #endif /* L_arm_addsubsf3 */
128 FUNC_START aeabi_cfrcmple
135 FUNC_START aeabi_cfcmpeq
136 FUNC_ALIAS aeabi_cfcmple aeabi_cfcmpeq
138 @ The status-returning routines are required to preserve all
139 @ registers except ip, lr, and cpsr.
140 6: push {r0, r1, r2, r3, r4, lr}
142 @ Set the Z flag correctly, and the C flag unconditionally.
144 @ Clear the C flag if the return value was -1, indicating
145 @ that the first operand was smaller than the second.
150 pop {r0, r1, r2, r3, r4, pc}
152 FUNC_END aeabi_cfcmple
153 FUNC_END aeabi_cfcmpeq
154 FUNC_END aeabi_cfrcmple
156 FUNC_START aeabi_fcmpeq
164 FUNC_END aeabi_fcmpeq
166 .macro COMPARISON cond, helper, mode=sf2
167 FUNC_START aeabi_fcmp\cond
179 FUNC_END aeabi_fcmp\cond
187 #endif /* L_arm_cmpsf2 */
189 #ifdef L_arm_addsubdf3
191 FUNC_START aeabi_drsub
202 #endif /* L_arm_addsubdf3 */
206 FUNC_START aeabi_cdrcmple
216 FUNC_START aeabi_cdcmpeq
217 FUNC_ALIAS aeabi_cdcmple aeabi_cdcmpeq
219 @ The status-returning routines are required to preserve all
220 @ registers except ip, lr, and cpsr.
221 6: push {r0, r1, r2, r3, r4, lr}
223 @ Set the Z flag correctly, and the C flag unconditionally.
225 @ Clear the C flag if the return value was -1, indicating
226 @ that the first operand was smaller than the second.
231 pop {r0, r1, r2, r3, r4, pc}
233 FUNC_END aeabi_cdcmple
234 FUNC_END aeabi_cdcmpeq
235 FUNC_END aeabi_cdrcmple
237 FUNC_START aeabi_dcmpeq
245 FUNC_END aeabi_dcmpeq
247 .macro COMPARISON cond, helper, mode=df2
248 FUNC_START aeabi_dcmp\cond
260 FUNC_END aeabi_dcmp\cond
268 #endif /* L_arm_cmpdf2 */