[PATCH] D27898: [compiler-rt] [builtins] Implement __floattitf() & __floatuntitf()
Michał Górny via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 18 03:38:20 PST 2016
mgorny created this revision.
mgorny added reviewers: sdmitrouk, rengolin, zatrazz.
mgorny added a subscriber: cfe-commits.
Herald added subscribers: dberris, aemerson.
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 mantissa.
(tested on AArch64)
https://reviews.llvm.org/D27898
Files:
lib/builtins/CMakeLists.txt
lib/builtins/floattitf.c
lib/builtins/floatuntitf.c
test/builtins/Unit/floattitf_test.c
test/builtins/Unit/floatuntitf_test.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27898.81876.patch
Type: text/x-patch
Size: 24713 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161218/85cf395a/attachment-0001.bin>
More information about the cfe-commits
mailing list