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.
Details
Details
- Reviewers
dim jrtc27 - Commits
- rG524b018d2004: riscv: Add a soft-float implementation of fabs()
Should fix RISCV64 softfloat world build
Diff Detail
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