linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Maciej W. Rozycki" <macro@wdc.com>
To: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Cc: "Jiaxun Yang" <jiaxun.yang@flygoat.com>,
	"Serge Semin" <fancer.lancer@gmail.com>,
	linux-mips@vger.kernel.org,
	"Thomas Bogendoerfer" <tsbogend@alpha.franken.de>,
	"Paul Burton" <paulburton@kernel.org>,
	"Huacai Chen" <chenhc@lemote.com>,
	"Zhou Yanjie" <zhouyanjie@zoho.com>,
	"周琰杰 (Zhou Yanjie)" <zhouyanjie@wanyeetech.com>,
	"Liangliang Huang" <huanglllzu@gmail.com>,
	linux-kernel@vger.kernel.org,
	"Maciej W. Rozycki" <macro@linux-mips.org>
Subject: Re: [PATCH] MIPS: Provide Kconfig option for default IEEE754 conformance mode
Date: Sun, 2 Aug 2020 22:46:31 +0100 (BST)	[thread overview]
Message-ID: <alpine.LFD.2.21.2008022213500.24175@redsun52.ssa.fujisawa.hgst.com> (raw)
In-Reply-To: <20200731061702.fxdfyxpvd6qrhoql@mobilestation>

On Fri, 31 Jul 2020, Serge Semin wrote:

> > Requested by downstream distros, a Kconfig option for default
> > IEEE754 conformance mode allows them to set their mode to
> > relaxed by default.
> 
> That's what should have been here in the first place. Thanks!

 Well, originally plans were there to have NaN interlinking implemented 
and no such mess or desire for hacks like one here would result.  Cf.:

<https://gcc.gnu.org/ml/gcc/2015-11/msg00068.html>,
<https://gcc.gnu.org/ml/gcc/2016-05/msg00137.html>,

and then:

<https://lkml.org/lkml/2015/11/16/386>,
<https://sourceware.org/ml/libc-alpha/2015-11/msg00485.html>,
<https://sourceware.org/ml/binutils/2015-11/msg00170.html>,
<https://gcc.gnu.org/ml/gcc-patches/2015-11/msg03241.html>.

You could well pick this work up and complete it if you like.  Final 
conclusions for further work were made here:

<https://gcc.gnu.org/ml/gcc/2016-11/msg00027.html>,
<https://gcc.gnu.org/ml/gcc/2017-08/msg00260.html>,
<https://gcc.gnu.org/ml/gcc/2017-10/msg00142.html>.

 In the relaxed mode math programs may produce wrong results unless you 
rebuild all your software for the correct NaN mode for the hardware used 
(in which case you don't need the relaxed setting in the first place).

  Maciej

  parent reply	other threads:[~2020-08-02 21:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-31  4:10 [PATCH] MIPS: Provide Kconfig option for default IEEE754 conformance mode Jiaxun Yang
2020-07-31  6:17 ` Serge Semin
2020-07-31  6:54   ` Huacai Chen
2020-08-02 21:46   ` Maciej W. Rozycki [this message]
2020-08-03  9:01     ` Jiaxun Yang
2020-08-05 19:30       ` Maciej W. Rozycki
2020-08-05 20:49       ` Zhou Yanjie
2020-07-31  8:33 ` WANG Xuerui
2020-07-31  4:11 Jiaxun Yang

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=alpine.LFD.2.21.2008022213500.24175@redsun52.ssa.fujisawa.hgst.com \
    --to=macro@wdc.com \
    --cc=Sergey.Semin@baikalelectronics.ru \
    --cc=chenhc@lemote.com \
    --cc=fancer.lancer@gmail.com \
    --cc=huanglllzu@gmail.com \
    --cc=jiaxun.yang@flygoat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=macro@linux-mips.org \
    --cc=paulburton@kernel.org \
    --cc=tsbogend@alpha.franken.de \
    --cc=zhouyanjie@wanyeetech.com \
    --cc=zhouyanjie@zoho.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 NNTP newsgroup(s).