1 /* Copyright (C) 2007-2019 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 single-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 ARC_FP_DEBUG 1
32 #define FINE_GRAINED_LIBRARIES
33 #define ARC_OPTFPE (defined (__ARC700__) || defined (__ARC_FPX_QUARK__))
35 #if !ARC_OPTFPE || ARC_FP_DEBUG
51 #define __addsf3 __addsf3_c
52 #define __subsf3 __subsf3_c
54 #define __mulsf3 __mulsf3_c
56 #define __divsf3 __divsf3_c
58 #define __extendsfdf2 __extendsfdf2_c
60 #define __floatsisf __floatsisf_c
62 #define __fixsfsi __fixsfsi_c
64 #define __floatunsisf __floatunsisf_c
67 #define L_fpcmp_parts_sf
78 #define L_fpcmp_parts_sf
80 #define __eqsf2 __eqsf2_c
82 #define __gtsf2 __gtsf2_c
84 #define __gesf2 __gesf2_c
86 #define __unordsf2 __unordsf2_c