This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] PA quiet NaN fix


The enclosed patch fixes PR target/27627.  PA-RISC appears to use the
same format as some MIPS processors for quiet and signaling NaNs.  I
say appears because I don't actually have documentation for the MIPS
format; but the current implementation of the MIPS format in real.c
works for PA-RISC.

I've applied the change to the trunk. I believe it would apply
to the other active branches.  Tested on hppa-unknown-linux-gnu
and hppa2.0w-hp-hpux11.11 with no regressions.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

2006-06-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	PR target/27627
	* pa/pa-modes.def: Use mips_single_format, mips_double_format and
	mips_quad_format formats instead of ieee_single_format,
	ieee_double_format and ieee_quad_format formats, respectively.

Index: config/pa/pa-modes.def
===================================================================
--- config/pa/pa-modes.def	(revision 114019)
+++ config/pa/pa-modes.def	(working copy)
@@ -21,8 +21,13 @@
 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
 Boston, MA 02110-1301, USA.  */
 
+/* PA-RISC has the same reversed quiet bit as MIPS.
+   ??? Why is this called the MIPS format.  */
+RESET_FLOAT_FORMAT (SF, mips_single_format);
+RESET_FLOAT_FORMAT (DF, mips_double_format);
+
 /* TFmode: IEEE quad floating point (software).  */
-FLOAT_MODE (TF, 16, ieee_quad_format);
+FLOAT_MODE (TF, 16, mips_quad_format);
 
 /* HPPA floating comparisons produce distinct condition codes.  */
 CC_MODE (CCFP);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]