public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] define WIDEST_HARDWARE_FP_SIZE on mips
@ 2007-10-08  8:59 Olivier Hainque
  2007-10-09 20:01 ` Richard Sandiford
  0 siblings, 1 reply; 23+ messages in thread
From: Olivier Hainque @ 2007-10-08  8:59 UTC (permalink / raw)
  To: gcc-patches; +Cc: hainque

[-- Attachment #1: Type: text/plain, Size: 837 bytes --]

Hello,

The attached patch defines WIDEST_HARDWARE_FP_SIZE on mips.

This is used by the Ada front end to determine the widest efficient
floating point type on the target. If not defined, we fallback on
LONG_DOUBLE_TYPE_SIZE and observe various mishaps if this requires
software support.

For instance, the test below is expected to output " +Inf*******".

On Irix 6.5, it currently raises a constraint_error exception from a
runtime library unit instead.

  << with Ada.Text_IO;

     procedure T is
       N : Float := 2.0;
     begin
       N := N ** 256;
       Ada.Text_IO.Put_Line(Float'Image(N));
     end;
  >>

Bootstrapped and regtested for languages=c,c++,ada on mips-sgi-irix6.5.

Thanks in advance,

Olivier

1007-10-08  Olivier Hainque  <hainque@adacore.com>

	* config/mips/mips.h (WIDEST_HARDWARE_FP_SIZE): Define.







[-- Attachment #2: mips-widest_fp_reg.dif --]
[-- Type: text/plain, Size: 539 bytes --]

Index: config/mips/mips.h
===================================================================
*** config/mips/mips.h	(revision 128810)
--- config/mips/mips.h	(working copy)
*************** extern enum mips_code_readable_setting m
*** 1178,1183 ****
--- 1178,1184 ----
  
  /* For MIPS, width of a floating point register.  */
  #define UNITS_PER_FPREG (TARGET_FLOAT64 ? 8 : 4)
+ #define WIDEST_HARDWARE_FP_SIZE 64
  
  /* The number of consecutive floating-point registers needed to store the
     largest format supported by the FPU.  */

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2009-03-05 22:06 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-08  8:59 [PATCH] define WIDEST_HARDWARE_FP_SIZE on mips Olivier Hainque
2007-10-09 20:01 ` Richard Sandiford
2007-10-10 11:43   ` Geert Bosch
2007-10-10 12:25     ` Richard Sandiford
2007-10-10 17:08       ` Geert Bosch
2009-03-02 17:30         ` Laurent GUERBY
2009-03-02 20:08           ` Richard Sandiford
2009-03-02 21:46             ` Laurent GUERBY
2009-03-03  5:17               ` Geert Bosch
2009-03-03  9:16                 ` Laurent GUERBY
2009-03-04 20:24                   ` Richard Sandiford
2009-03-04 21:10                     ` Laurent GUERBY
2009-03-04 22:03                       ` Richard Sandiford
2009-03-04 23:19                       ` Joseph S. Myers
2009-03-04 23:55                         ` Laurent GUERBY
2009-03-05  4:36                           ` Geert Bosch
2009-03-05 13:56                             ` Joseph S. Myers
2009-03-04 21:13                     ` Geert Bosch
2009-03-04 22:18                       ` Richard Sandiford
2009-03-05  4:30                         ` Geert Bosch
2009-03-05 22:06                           ` Richard Sandiford
2009-03-03  9:43             ` Olivier Hainque
2009-03-04 10:19               ` Laurent GUERBY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).