[PATCH v2] sparc: Force calculation that raises exception
Daniel Cederman
cederman@gaisler.com
Tue Jan 16 15:16:35 GMT 2024
On 2024-01-16 14:57, Adhemerval Zanella Netto wrote:
>
>
> On 15/01/24 11:53, Daniel Cederman wrote:
>> Use the math_force_eval() macro to force the calculation to complete and
>> raise the exception.
>>
>> With this change the math/test-fenv test pass.
>>
>> Signed-off-by: Daniel Cederman <cederman@gaisler.com>
>> ---
>> sysdeps/sparc/fpu/fraiseexcpt.c | 10 +++++-----
>> 1 file changed, 5 insertions(+), 5 deletions(-)
>>
>> diff --git a/sysdeps/sparc/fpu/fraiseexcpt.c b/sysdeps/sparc/fpu/fraiseexcpt.c
>> index 26a7720ec9..87c8f9a4dc 100644
>> --- a/sysdeps/sparc/fpu/fraiseexcpt.c
>> +++ b/sysdeps/sparc/fpu/fraiseexcpt.c
>
> You need to include '<math-barriers.h>' (I am getting building failure
> without it).
>
Sorry about that, I will post an updated version with this fixed.
Thank you for reviewing the patches! Can I ask you to also take a look
at the "sparc: Do not test preservation of NaN payloads for LEON" patch?
The FPU used by LEON does not support propagating NaN payloads
(documented in Section 51.2.7 in
https://www.gaisler.com/products/grlib/grip.pdf)
More information about the Libc-alpha
mailing list