1 /* Copyright (C) 2007-2017 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 #define ARC_OPTFPE (defined (__ARC700__) || defined (__ARC_FPX_QUARK__))
35 #if !ARC_OPTFPE || ARC_DP_DEBUG
46 #define __adddf3 __adddf3_c
47 #define __subdf3 __subdf3_c
52 #elif (!defined (__ARC700__) && !defined (__ARC_MUL64__) \
53 && !defined (__ARC_MUL32BY16__) && !defined (__HS__))
57 #define QUIET_NAN 0xfffffffffffffLL
60 #define __muldf3 __muldf3_c
62 #define __divdf3 __divdf3_c
68 #define L_tf_to_usi /* need to defined this instead of df_to_usi */
72 #define __truncdfsf2 __truncdfsf2_c
74 #define __floatsidf __floatsidf_c
76 #define __fixdfsi __fixdfsi_c
78 #define __fixunsdfsi __fixunsdfsi_c
80 #define __floatunsidf __floatunsidf_c
83 #define L_fpcmp_parts_df
94 #define L_fpcmp_parts_df
96 #define __eqdf2 __eqdf2_c
98 #define __gtdf2 __gtdf2_c
100 #define __gedf2 __gedf2_c
102 #define __unorddf2 __unorddf2_c