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
F151572903: D28994.id84894.diff
Thu, Apr 9, 6:49 AM
F151525735: D28994.diff
Thu, Apr 9, 12:44 AM
Unknown Object (File)
Tue, Apr 7, 12:12 AM
Unknown Object (File)
Sun, Apr 5, 7:31 PM
Unknown Object (File)
Sat, Apr 4, 6:24 AM
Unknown Object (File)
Fri, Apr 3, 12:27 AM
Unknown Object (File)
Fri, Mar 27, 5:53 AM
Unknown Object (File)
Wed, Mar 25, 2:50 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