Page MenuHomeFreeBSD

msun fixes for SPE
ClosedPublic

Authored by jhibbits on Dec 15 2019, 9:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 5:41 AM
Unknown Object (File)
Sun, Nov 10, 5:40 AM
Unknown Object (File)
Sun, Nov 10, 5:40 AM
Unknown Object (File)
Wed, Nov 6, 1:20 PM
Unknown Object (File)
Wed, Nov 6, 1:11 PM
Unknown Object (File)
Oct 15 2024, 8:32 AM
Unknown Object (File)
Oct 8 2024, 12:37 AM
Unknown Object (File)
Oct 5 2024, 12:59 AM
Subscribers

Details

Summary

Fix FPU exception management for powerpcspe. Bits are in a different place from
the standard FPSCR, so we need to handle the shifting differences. Also,
there's no concept of a "software exception" raise, so we need to do exceptional
math to trigger the exception from software.

Test Plan

Should probably run the kyua test on powerpcspe.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

alfredo added inline comments.
lib/msun/powerpc/fenv.h
52

Should it include FE_INVALID? Like:

#define FE_ALL_INVALID FE_INVALID
jhibbits added inline comments.
lib/msun/powerpc/fenv.h
52

Yes, it should be.

jhibbits marked an inline comment as done.

Address @alfredo's feedback

I don't have any SPE board to try it. Anyway it LGTM

This revision is now accepted and ready to land.May 4 2021, 8:24 PM
This revision was automatically updated to reflect the committed changes.