diff options
author | Ryan Prichard <rprichard@google.com> | 2021-02-23 22:09:24 -0800 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2021-02-24 14:27:37 -0800 |
commit | 341889ee9e03e73b313263c516b3d1fd33d4c4ba (patch) | |
tree | 2e1dcecdb5f9849011ccd98ebad9f1cb0ad779a3 /llvm/lib/Support/Signposts.cpp | |
parent | a921aaf789912d981cbb2036bdc91ad7289e1523 (diff) | |
download | llvm-341889ee9e03e73b313263c516b3d1fd33d4c4ba.zip llvm-341889ee9e03e73b313263c516b3d1fd33d4c4ba.tar.gz llvm-341889ee9e03e73b313263c516b3d1fd33d4c4ba.tar.bz2 |
[builtins] Define fmax and scalbn inline
Define inline versions of __compiler_rt_fmax* and __compiler_rt_scalbn*
rather than depend on the versions in libm. As with
__compiler_rt_logbn*, these functions are only defined for single,
double, and quad precision (binary128).
Fixes PR32279 for targets using only these FP formats (e.g. Android
on arm/arm64/x86/x86_64).
For single and double precision, on AArch64, use __builtin_fmax[f]
instead of the new inline function, because the builtin expands to the
AArch64 fmaxnm instruction.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D91841
Diffstat (limited to 'llvm/lib/Support/Signposts.cpp')
0 files changed, 0 insertions, 0 deletions