make dep-am and regen
[binutils-gdb.git] / opcodes / tic30-dis.c
index eac6c4571df329e9a4228927aa4639b44bddf1d9..2e3271bfe16f248d8251ef64302c6cc7a9d29a04 100644 (file)
@@ -1,21 +1,23 @@
 /* Disassembly routines for TMS320C30 architecture
-   Copyright 1998, 1999, 2000, 2002, 2005 Free Software Foundation, Inc.
+   Copyright 1998, 1999, 2000, 2002, 2005, 2007 Free Software Foundation, Inc.
    Contributed by Steven Haworth (steve@pm.cse.rmit.edu.au)
 
-   This program is free software; you can redistribute it and/or modify
+   This file is part of the GNU opcodes library.
+
+   This library is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
+   the Free Software Foundation; either version 3, or (at your option)
+   any later version.
 
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
+   It is distributed in the hope that it will be useful, but WITHOUT
+   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
+   License for more details.
 
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
-   02110-1301, USA.  */
+   along with this file; see the file COPYING.  If not, write to the
+   Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
+   MA 02110-1301, USA.  */
 
 #include <errno.h>
 #include <math.h>
@@ -302,10 +304,17 @@ cnvt_tmsfloat_ieee (unsigned long tmsfloat, int size, float *ieeefloat)
     {
       if (mant == 0)
        *ieeefloat = ERANGE;
+#ifdef HUGE_VALF
+      if (sign == 0)
+       *ieeefloat = HUGE_VALF;
+      else
+       *ieeefloat = -HUGE_VALF;
+#else
       if (sign == 0)
        *ieeefloat = 1.0 / 0.0;
       else
        *ieeefloat = -1.0 / 0.0;
+#endif
       return 1;
     }
   exp >>= 1;