public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Joseph Myers <joseph@codesourcery.com>
To: Palmer Dabbelt <palmer@dabbelt.com>
Cc: <libc-alpha@sourceware.org>, Andrew Waterman <andrew@sifive.com>,
	Darius Rad <darius@bluespec.com>, <dj@redhat.com>,
	<patches@groups.riscv.org>
Subject: Re: [PATCH 08/17] RISC-V: Generic <math.h> and soft-fp Routines
Date: Thu, 25 Jan 2018 17:12:00 -0000	[thread overview]
Message-ID: <alpine.DEB.2.20.1801251707340.22734@digraph.polyomino.org.uk> (raw)
In-Reply-To: <20180125043621.19972-9-palmer@dabbelt.com>

On Wed, 24 Jan 2018, Palmer Dabbelt wrote:

> FIXME: add ieee745/soft-fp via a riscv/soft-fp directory.

You need to remove that FIXME (and, in general, update patch descriptions 
when sending new versions of a patch series - though in this case it 
doesn't matter so much, as it makes sense for the final commit of a new 
port to go in a single commit, not lots of separate commits of different 
pieces that don't work without each other, so an overall commit message is 
what's needed at that point anyway).

> +/* Despite not supporting trapping exceptions, we support setting
> +   floating-point exception flags on hard-float targets.  These are not
> +   supported on soft-float targets.  */
> +#if __riscv_flen == 0
> +#define EXCEPTION_TESTS_float 0
> +#define EXCEPTION_TESTS_double        0
> +#endif

Missing preprocessor indentation, "# define".

> +/* We don't support the Q extension yet, so long double is always soft float
> + * and therefor doesn't support exceptions.  */
> +#define EXCEPTION_TESTS_long_double   0

That's not accurate.  The EXCEPTION_TESTS_long_double definition should be 
inside the same conditional as the others - the RISC-V sfp-machine.h, in 
both glibc and libgcc, already handles making software floating-point 
types use the hardware exceptions and rounding modes when those exist.

(I expect that if you completed a soft-float test run you'd find that 
ROUNDING_TESTS_* definitions, similar to those on other ports, are also 
needed inside that conditional, to disable tests of rounding modes other 
than FE_TONEAREST for soft-float.)

-- 
Joseph S. Myers
joseph@codesourcery.com

  reply	other threads:[~2018-01-25 17:12 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-25  4:37 RISC-V glibc port, v5 Palmer Dabbelt
2018-01-25  4:36 ` [PATCH 06/17] RISC-V: Startup and Dynamic Loading Code Palmer Dabbelt
2018-01-25 17:05   ` Joseph Myers
2018-01-25 19:55     ` Palmer Dabbelt
2018-01-25  4:36 ` [PATCH 03/17] Add support for the RISC-V-specific ELF flags Palmer Dabbelt
2018-01-25 16:51   ` Joseph Myers
2018-01-25 18:09     ` Palmer Dabbelt
2018-01-26 17:44       ` Szabolcs Nagy
2018-01-26 18:20         ` Palmer Dabbelt
2018-01-26 22:46         ` Joseph Myers
2018-01-25  4:36 ` [PATCH 04/17] Add documentation for __riscv_flush_icache Palmer Dabbelt
2018-01-25  4:36 ` [PATCH 02/17] Add RISC-V entries to config.h.in Palmer Dabbelt
2018-01-25  4:36 ` [PATCH 01/17] Skeleton documentation for the RISC-V port Palmer Dabbelt
2018-01-25 16:50   ` Joseph Myers
2018-01-25 18:04     ` Palmer Dabbelt
2018-01-25  4:37 ` [PATCH 08/17] RISC-V: Generic <math.h> and soft-fp Routines Palmer Dabbelt
2018-01-25 17:12   ` Joseph Myers [this message]
2018-01-25 20:57     ` Palmer Dabbelt
2018-01-25  4:37 ` [PATCH 15/17] RISC-V: Add ABI Lists Palmer Dabbelt
2018-01-25 17:26   ` Joseph Myers
2018-01-25 20:57     ` Palmer Dabbelt
2018-01-25  4:37 ` [PATCH 17/17] Add RISC-V to build-many-glibcs.py Palmer Dabbelt
2018-01-25 17:42   ` Joseph Myers
2018-01-25 21:18     ` Palmer Dabbelt
2018-01-25  4:37 ` [PATCH 13/17] RISC-V: Linux ABI Palmer Dabbelt
2018-01-25 17:24   ` Joseph Myers
2018-01-25 18:19     ` Adhemerval Zanella
2018-01-25 20:57     ` Palmer Dabbelt
2018-01-25  4:37 ` [PATCH 10/17] RISC-V: RV32D, RV64F, and RV64D Support Palmer Dabbelt
2018-01-25  4:37 ` [PATCH 14/17] RISC-V: Linux Startup and Dynamic Loading Code Palmer Dabbelt
2018-01-25  4:37 ` [PATCH 05/17] RISC-V: ABI Implementation Palmer Dabbelt
2018-01-25  4:37 ` [PATCH 16/17] RISC-V: Build Infastructure Palmer Dabbelt
2018-01-25  4:37 ` [PATCH 12/17] RISC-V: Linux Syscall Interface Palmer Dabbelt
2018-01-25 17:15   ` Joseph Myers
2018-01-25 20:57     ` Palmer Dabbelt
2018-01-25  4:37 ` [PATCH 09/17] RISC-V: RV32F Support Palmer Dabbelt
2018-01-25  4:37 ` [PATCH 11/17] RISC-V: Atomic and Locking Routines Palmer Dabbelt
2018-01-25  4:37 ` [PATCH 07/17] RISC-V: Thread-Local Storage Support Palmer Dabbelt
2018-01-25  9:35 ` RISC-V glibc port, v5 Andreas Schwab
2018-01-25 16:33   ` Palmer Dabbelt
2018-01-25 18:01   ` Joseph Myers
2018-01-25 11:47 ` Darius Rad
2018-01-25 16:44 ` Joseph Myers
2018-01-25 16:52   ` DJ Delorie
2018-01-25 17:06     ` Joseph Myers
2018-01-25 19:01       ` Jim Wilson
2018-01-25 20:27         ` Joseph Myers
2018-01-25 17:08     ` Andreas Schwab
2018-01-25 18:04   ` Palmer Dabbelt
2018-01-25 18:37     ` Joseph Myers
2018-01-26  2:58       ` Palmer Dabbelt
2018-01-25 17:06 ` DJ Delorie
2018-01-25 17:58 ` Joseph Myers
2018-01-25 19:59   ` Richard W.M. Jones
2018-01-25 20:52     ` Joseph Myers
2018-01-26  3:44       ` Palmer Dabbelt
2018-01-26  2:59     ` Palmer Dabbelt
2018-01-25 20:32   ` Joseph Myers
2018-01-26  3:44     ` Palmer Dabbelt
2018-01-26 12:37       ` Joseph Myers
2018-01-26 17:51         ` Palmer Dabbelt
2018-01-26  2:58   ` [patches] " Palmer Dabbelt
2018-01-26 12:32     ` Joseph Myers

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.DEB.2.20.1801251707340.22734@digraph.polyomino.org.uk \
    --to=joseph@codesourcery.com \
    --cc=andrew@sifive.com \
    --cc=darius@bluespec.com \
    --cc=dj@redhat.com \
    --cc=libc-alpha@sourceware.org \
    --cc=palmer@dabbelt.com \
    --cc=patches@groups.riscv.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).