[PATCH] D54313: [compiler-rt][builtins][PowerPC] Add floattitf builtin compiler-rt method support for PowerPC
Amy Kwan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 9 06:59:50 PST 2018
amyk created this revision.
amyk added reviewers: nemanjai, echristo, hfinkel.
Herald added subscribers: jsji, mgorny, dberris.
This patch implements the `int128_t floattitf (long double)` method for PowerPC — specifically to convert a long double (IBM double-double data type) to a 128 bit integer.
The algorithm used in this conversion method from long double to int128_t utilizes the `int64_t floatditf (long double)` and `uint64_t floatunditf (long double)` methods, which are already implemented under `lib/builtins/ppc/`.
This method can be invoked by linking against compiler-rt instead of libgcc, via the `-rtlib=compiler-rt` command line option supplied to clang.
https://reviews.llvm.org/D54313
Files:
compiler-rt/lib/builtins/CMakeLists.txt
compiler-rt/lib/builtins/ppc/floattitf.c
compiler-rt/test/builtins/Unit/ppc/floattitf_test.c
compiler-rt/test/builtins/Unit/ppc/floattitf_test.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54313.173322.patch
Type: text/x-patch
Size: 22309 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181109/8975c0b8/attachment-0001.bin>
More information about the llvm-commits
mailing list