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
F107077529: D28994.diff
Thu, Jan 9, 6:39 PM
Unknown Object (File)
Mon, Dec 16, 4:18 PM
Unknown Object (File)
Nov 22 2024, 10:22 AM
Unknown Object (File)
Nov 19 2024, 11:58 PM
Unknown Object (File)
Nov 13 2024, 8:51 PM
Unknown Object (File)
Oct 13 2024, 5:32 PM
Unknown Object (File)
Oct 6 2024, 12:44 AM
Unknown Object (File)
Sep 30 2024, 11:15 PM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37471
Build 34360: arc lint + arc unit