Implement arithmetic on APFloat with PPCDoubleDouble semantics by
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 29 Oct 2012 18:09:01 +0000 (18:09 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 29 Oct 2012 18:09:01 +0000 (18:09 +0000)
commit69c9c8c4cf57d49a0c64507082617f433372831d
tree911430fe76831e20f4e3aa29590eb9d5c84ca6e6
parent2fbc239e4fbdd12c24fb2cf9e3e915861fc12030
Implement arithmetic on APFloat with PPCDoubleDouble semantics by
treating it as if it were an IEEE floating-point type with 106-bit
mantissa.

This makes compile-time arithmetic on "long double" for PowerPC
in clang (in particular parsing of floating point constants)
work, and fixes all "long double" related failures in the test
suite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166951 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/APFloat.cpp
unittests/ADT/APFloatTest.cpp