1 /* Copyright (C) 2007-2013 Free Software Foundation, Inc.
2 Contributor: Joern Rennecke <joern.rennecke@embecosm.com>
3 on behalf of Synopsys Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 3, or (at your option) any later
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 Under Section 7 of GPL version 3, you are granted additional
18 permissions described in the GCC Runtime Library Exception, version
19 3.1, as published by the Free Software Foundation.
21 You should have received a copy of the GNU General Public License and
22 a copy of the GCC Runtime Library Exception along with this program;
23 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
24 <http://www.gnu.org/licenses/>. */
26 /* This file selects the double-precision parts of fp-bit.c that are
27 still needed for some ARC hardware variants; it also renames functions
28 that duplicate asm-coded functionality so that their results can be
29 used to compare with the optimized versions for debugging. */
31 #define FINE_GRAINED_LIBRARIES
32 #define ARC_DP_DEBUG 1
33 #if !defined (__ARC_NORM__) || ARC_DP_DEBUG
44 #define __adddf3 __adddf3_c
45 #define __subdf3 __subdf3_c
50 #elif (!defined (__ARC700__) && !defined (__ARC_MUL64__) \
51 && !defined(__ARC_MUL32BY16__))
55 #define QUIET_NAN 0xfffffffffffffLL
58 #define __muldf3 __muldf3_c
60 #define __divdf3 __divdf3_c
66 #define L_tf_to_usi /* need to defined this instead of df_to_usi */
70 #define __truncdfsf2 __truncdfsf2_c
72 #define __floatsidf __floatsidf_c
74 #define __fixdfsi __fixdfsi_c
76 #define __fixunsdfsi __fixunsdfsi_c
78 #define __floatunsidf __floatunsidf_c
81 #define L_fpcmp_parts_df
92 #define L_fpcmp_parts_df
94 #define __eqdf2 __eqdf2_c
96 #define __gtdf2 __gtdf2_c
98 #define __gedf2 __gedf2_c
100 #define __unorddf2 __unorddf2_c