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)
Feb 10 2024, 11:22 AM
Unknown Object (File)
Dec 22 2023, 11:18 PM
Unknown Object (File)
Dec 12 2023, 10:29 AM
Unknown Object (File)
Nov 9 2023, 10:32 PM
Unknown Object (File)
Nov 8 2023, 11:03 AM
Unknown Object (File)
Nov 7 2023, 6:48 AM
Unknown Object (File)
Nov 4 2023, 4:27 PM
Unknown Object (File)
Oct 8 2023, 9:26 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable