Page MenuHomeFreeBSD

riscv: Add a soft-float implementation of fabs()
ClosedPublic

Authored by arichardson on Mar 1 2021, 11:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 5, 12:05 AM
Unknown Object (File)
Sun, Sep 1, 10:40 AM
Unknown Object (File)
Aug 15 2024, 6:41 PM
Unknown Object (File)
Aug 12 2024, 7:27 AM
Unknown Object (File)
Aug 4 2024, 10:05 PM
Unknown Object (File)
Aug 3 2024, 8:12 AM
Unknown Object (File)
Jul 18 2024, 4:53 PM
Unknown Object (File)
Jun 30 2024, 10:01 AM
Subscribers

Details

Summary

We could just use a C implementation using __builtin_fabs(), but using
this assembly version guarantees that there is no additional prolog/epilog
code. Additionally, clang generates worse code for masking off the top bit
than GCC: https://bugs.llvm.org/show_bug.cgi?id=49377.

Test Plan

Should fix RISCV64 softfloat world build

Diff Detail

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