diff options
author | Michal Gorny <mgorny@gentoo.org> | 2017-01-06 18:46:35 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2017-01-06 18:46:35 +0000 |
commit | 9fcfdd059136f30b3b6bcf88c6b67f94ce05696c (patch) | |
tree | c4770374d115b87c6913d44836311cbc6c0eac26 /lib/builtins/CMakeLists.txt | |
parent | 56faee71af1888ba12ab076b3d1f9bbe223493df (diff) |
[builtins] Implement __floattitf() & __floatuntitf()
Implement the missing __floattitf() and __floatuntitf() functions, to
convert 128-bit (unsigned) integers to quad-precision floating-point
types. This is needed e.g. on AArch64 where 'long double' is
a quad-precision type.
The code is based on the existing code for __floattixf()
and __floatuntixf(), updated to account for different bit field lengths
of quad-precision float. The tests are also copied, with the rounding
tests adjusted for longer significand.
Differential Revision: https://reviews.llvm.org/D27898
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@291259 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/CMakeLists.txt')
-rw-r--r-- | lib/builtins/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/builtins/CMakeLists.txt b/lib/builtins/CMakeLists.txt index b33786a85..3cf78616a 100644 --- a/lib/builtins/CMakeLists.txt +++ b/lib/builtins/CMakeLists.txt @@ -415,8 +415,10 @@ set(aarch64_SOURCES fixunstfti.c floatditf.c floatsitf.c + floattitf.c floatunditf.c floatunsitf.c + floatuntitf.c multc3.c trunctfdf2.c trunctfsf2.c |