[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc
Subject:    Re: [RISC-V] Support for trapping math in RISC-V
From:       Joseph Myers via Gcc <gcc () gcc ! gnu ! org>
Date:       2024-04-29 20:28:31
Message-ID: 465937-78a-b98c-14fa-f27a12d83894 () redhat ! com
[Download RAW message or body]

On Wed, 24 Apr 2024, Krishna Narayanan via Gcc wrote:

> Hi all,
> Is the RISC-V community planning to add support for trapping math in RISC-V
> in the near future!?
> This LLVM thread
> https://discourse.llvm.org/t/trapping-math-for-risc-v/72168/7  suggests a
> software emulation of traps, is the GNU team also on similar lines to this
> implementation or has some different views.

That strategy sounds both very slow and not even complete (it doesn't 
cover the case of exact underflow, which doesn't raise the exception flag, 
but should signal the exception when trapping is enabled).

Traps are not part of standard C.  I'm not aware of any implementations of 
the TS 18661-5 interfaces to alternate exception handling either.

-- 
Joseph S. Myers
josmyers@redhat.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic