diff options
author | Alex Richardson <arichardson@FreeBSD.org> | 2021-03-01 12:46:30 +0000 |
---|---|---|
committer | Alex Richardson <arichardson@FreeBSD.org> | 2021-03-01 12:53:46 +0000 |
commit | 524b018d200408bed5eb0d2b892db5b9fb46808b (patch) | |
tree | 2c18a44638112ad86a366517c151c3fca57d308f /sys/dev/pci/pci_dw_mv.c | |
parent | a26ace4db6d974215a4d882948da80eae2b3b0d4 (diff) | |
download | src-524b018d200408bed5eb0d2b892db5b9fb46808b.tar.gz src-524b018d200408bed5eb0d2b892db5b9fb46808b.zip |
riscv: Add a soft-float implementation of fabs()
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.
This fixes the RISCV64 softfloat world build after cf97d2a1dab8. That commit
added -fno-builtin to the msun tests which resulted in the first references to
fabs (previously the compiler inlined all calls).
Reviewed By: dim
Reported by: mjg
Differential Revision: https://reviews.freebsd.org/D28994
Diffstat (limited to 'sys/dev/pci/pci_dw_mv.c')
0 files changed, 0 insertions, 0 deletions