summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorAmy Kwan <amy.kwan1@ibm.com>2019-01-10 12:30:12 +0000
committerAmy Kwan <amy.kwan1@ibm.com>2019-01-10 12:30:12 +0000
commit941dacc360cd31efe8bba0fb5095896a0b7a6d25 (patch)
tree650e5314e5af2087a79541dad4c8d7db51c218ad /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent6a9f831ffd9fc7f5a6ad7dafa0795183ecd92dec (diff)
[compiler-rt][builtins][PowerPC] Implemented __fixunstfti builtin on PowerPC
This patch implements the __uint128_t __fixunstfti (long double) method for PowerPC -- specifically to convert a long double (IBM double-double) to an unsigned 128 bit integer. The general approach of this algorithm is to convert the high and low doubles of the long double and add them together if the doubles fit within 64 bits. However, additional adjustments and scaling is performed when the high or low double does not fit within a 64 bit integer. To invoke this method, one can do so by linking against compiler-rt, via the --rtlib=compiler-rt command line option supplied to clang. Differential Revision: https://reviews.llvm.org/D54911 llvm-svn: 350815
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions