public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Corinna Vinschen <vinschen@redhat.com>
To: "Maciej W. Rozycki" <macro@embecosm.com>
Cc: newlib@sourceware.org, Kito Cheng <kito.cheng@gmail.com>
Subject: Re: [PATCH] RISC-V: Fix floating-point environment support for soft float
Date: Fri, 27 Jan 2023 14:26:28 +0100	[thread overview]
Message-ID: <Y9PRBNQG/OAne6DR@calimero.vinschen.de> (raw)
In-Reply-To: <alpine.DEB.2.20.2301270123150.7841@tpp.orcam.me.uk>

On Jan 27 08:53, Maciej W. Rozycki wrote:
> We don't have floating-point exception or non-default rounding mode 
> support for the RISC-V soft-float environment, `feraiseexcept' and 
> `fesetround' do nothing unless the `__riscv_flen' macro has been set. 
> Therefore following ISO C language requirements[1] only define macros 
> for soft float that correspond to actually supported floating-point 
> environment features, removing failures from GCC testing such as:
> 
> FAIL: gcc.dg/torture/fp-int-convert-timode-3.c   -O0  execution test
> FAIL: gcc.dg/torture/fp-int-convert-timode-4.c   -O0  execution test
> 
> References:
> 
> [1] "Programming languages -- C", ISO/IEC 9899:2023, working draft --
>     September 3, 2022, Section 7.6 "Floating-point environment <fenv.h>"
> 
> Fixes: 7040b2de0883 ("Add RISC-V port for libm")
> Signed-off-by: Maciej W. Rozycki <macro@embecosm.com>
> ---
>  newlib/libc/machine/riscv/sys/fenv.h |    9 +++++++++
>  1 file changed, 9 insertions(+)

Pushed.


Thanks,
Corinna


      parent reply	other threads:[~2023-01-27 13:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-27  8:53 Maciej W. Rozycki
2023-01-27  9:08 ` Kito Cheng
2023-01-27 13:26 ` Corinna Vinschen [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=Y9PRBNQG/OAne6DR@calimero.vinschen.de \
    --to=vinschen@redhat.com \
    --cc=kito.cheng@gmail.com \
    --cc=macro@embecosm.com \
    --cc=newlib@sourceware.org \
    /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).