Status of implementation of fenv.h test suites

Joel Sherrill joel at rtems.org
Mon Feb 24 22:50:17 UTC 2020


On Mon, Feb 24, 2020 at 1:33 PM Eshan Dhawan <eshandhawan51 at gmail.com>
wrote:

> For implementation of fegetround() and fesetround()
>
> basic details :
> https://pubs.opengroup.org/onlinepubs/9699919799/functions/fegetround.html
>
> As I used fesetround() to change the rounding direction it returns a
> successful result
> but when I test fegetround() for the same rounding direction then it fails
> and just returns rounding to nearest.
>

Which architecture? Assuming this was on RTEMS, which BSP?

Behavior is allowed to vary a bit if the rounding mode is not supported.
Likely not supported
if you were using soft floating point.

--joel


>
>
> On Thu, Feb 20, 2020 at 7:28 PM Joel Sherrill <joel at rtems.org> wrote:
>
>>
>>
>> On Thu, Feb 20, 2020 at 2:33 AM Vaibhav Gupta <vaibhav.varodek at gmail.com>
>> wrote:
>>
>>>
>>>
>>> On Thu, Feb 20, 2020, 12:47 PM Eshan Dhawan <eshandhawan51 at gmail.com>
>>> wrote:
>>>
>>>> Hello
>>>>  The current fenv.h test suite  supports only basic functions that
>>>> check that fenv.h environment is present or not
>>>> I would like to extend the test suite further
>>>> What more functions can be added to it.
>>>>
>>> Test all the functions of fenv.h:
>>> https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fenv.h.html
>>>
>>
>> Here is the FreeBSD test.
>>
>> http://web.mit.edu/freebsd/head/tools/regression/lib/msun/test-fenv.c
>>
>> It needs to account for not having the functionality at least.
>>
>>
>>>
>>>
>>> -- Vaibhav Gupta
>>>
>>>>
>>>> -Eshan Dhawan
>>>> _______________________________________________
>>>> devel mailing list
>>>> devel at rtems.org
>>>> http://lists.rtems.org/mailman/listinfo/devel
>>>>
>>> _______________________________________________
>>> devel mailing list
>>> devel at rtems.org
>>> http://lists.rtems.org/mailman/listinfo/devel
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200224/827cd0a9/attachment.html>


More information about the devel mailing list