136ac495dSmrg /* libgcc routines for MIPS 2*8feb0f0bSmrg Copyright (C) 2013-2020 Free Software Foundation, Inc. 336ac495dSmrg DMULT/DDIV replacement support by Juergen Urban, JuergenUrban@gmx.de. 436ac495dSmrg 536ac495dSmrg This file is part of GCC. 636ac495dSmrg 736ac495dSmrg GCC is free software; you can redistribute it and/or modify it under 836ac495dSmrg the terms of the GNU General Public License as published by the Free 936ac495dSmrg Software Foundation; either version 3, or (at your option) any later 1036ac495dSmrg version. 1136ac495dSmrg 1236ac495dSmrg GCC is distributed in the hope that it will be useful, but WITHOUT ANY 1336ac495dSmrg WARRANTY; without even the implied warranty of MERCHANTABILITY or 1436ac495dSmrg FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1536ac495dSmrg for more details. 1636ac495dSmrg 1736ac495dSmrg Under Section 7 of GPL version 3, you are granted additional 1836ac495dSmrg permissions described in the GCC Runtime Library Exception, version 1936ac495dSmrg 3.1, as published by the Free Software Foundation. 2036ac495dSmrg 2136ac495dSmrg You should have received a copy of the GNU General Public License and 2236ac495dSmrg a copy of the GCC Runtime Library Exception along with this program; 2336ac495dSmrg see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 2436ac495dSmrg <http://www.gnu.org/licenses/>. */ 2536ac495dSmrg 2636ac495dSmrg #if defined(__mips64) && defined(_MIPS_ARCH_R5900) 2736ac495dSmrg 2836ac495dSmrg /* Build DI version of libgcc functions. */ 2936ac495dSmrg #define LIBGCC2_UNITS_PER_WORD 4 3036ac495dSmrg 3136ac495dSmrg /* The following function is needed when !ISA_HAS_DMULT. */ 3236ac495dSmrg #define L_muldi3 3336ac495dSmrg 3436ac495dSmrg /* The following functions are needed when !ISA_HAS_DDIV. */ 3536ac495dSmrg #define L_divdi3 3636ac495dSmrg #define L_moddi3 3736ac495dSmrg #define L_udivdi3 3836ac495dSmrg #define L_umoddi3 3936ac495dSmrg #define L_udivmoddi4 4036ac495dSmrg 4136ac495dSmrg /* Use generic definition of functions. */ 4236ac495dSmrg #include "libgcc2.c" 4336ac495dSmrg 4436ac495dSmrg #endif 45