public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
To: frichard@bbn.com
Cc: egcs@cygnus.com
Subject: Re: More info: EGCS-971016 on Solaris2.5/UltraSparc
Date: Tue, 21 Oct 1997 00:30:00 -0000	[thread overview]
Message-ID: <199710210731.JAA00622@sunsite.ms.mff.cuni.cz> (raw)
In-Reply-To: <199710202229.SAA13564@bbn.com>

> Hi-
> 
> I ran a bunch of tests with the sun CC compiler and I found out that
> the only significant feature (for my platform) that their compiler
> uses that's not in EGCS (yet) is is the -fns option:
> 
>      -fns         Turn on the SPARC nonstandard floating-point mode (SPARC)
> 
> Does anyone know what this is?  I don't know if this is a trivial
> thing or a tricky one.

The FPU on the UltraSPARC is not working with subnormal operands and/or
results. Instead of that, it traps to the operating system, so that the
results can be correct according to IEEE754. That may be slow, so NS says
that all subnormal operands and all subnormal results will be replaced by
zeros with the same sign (and if requested IEEE754 inexact/underflow traps
will be signalled).

I'm not 100% sure what does the -fns option in SunPRO exactly, probably it
just chooses different startup files and maybe makes some differences in the
code. Could you by change sent me privately assembly output of some short
FPU intensive program compiled with and without -fns?

Cheers,
    Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
Ultralinux - first 64bit OS to take full power of the UltraSparc
Linux version 2.0.30 on a sparc machine (291.64 BogoMips).
___________________________________________________________________

      parent reply	other threads:[~1997-10-21  0:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-20 15:30 Fred Richardson
1997-10-20 18:57 ` John Carr
1997-10-21  0:30 ` Jakub Jelinek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199710210731.JAA00622@sunsite.ms.mff.cuni.cz \
    --to=jj@sunsite.ms.mff.cuni.cz \
    --cc=egcs@cygnus.com \
    --cc=frichard@bbn.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).