[PATCH 2/5] testsuites/libtests: Remove floats from libdl tests

Kinsey Moore kinsey.moore at oarcorp.com
Mon Aug 28 16:40:46 UTC 2023


(cross posted from discord) I did some digging and it looks like the right
macros/defines to gate on are CPU_SOFTWARE_FP and CPU_HARDWARE_FP. The FP
code in the loadable module should only be present if at least one of those
is available and the definition in the host binary should only be present
if the former is true. It looks like these aren't set correctly in at least
some cases.

Kinsey

On Mon, Aug 28, 2023 at 10:35 AM Alex White <alex.white at oarcorp.com> wrote:

> On Mon, Aug 28, 2023 at 10:31 AM Sam Price <thesamprice at gmail.com> wrote:
> >
> > Nevermind that would be done at the linker and not at compile time.
>
> I searched for some way to check if soft float routines are being used,
> but I
> couldn't find anything.
>
> Maybe we just remove the conditional altogether? I don't think it's a
> problem
> to have an extra print statement on targets that use hardware floating
> point
> instructions. This would simplify the code and make it more portable.
>
> Alex
> _______________________________________________
> 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/20230828/bb12e83e/attachment.htm>


More information about the devel mailing list