search for: apfloatpayload

Displaying 2 results from an estimated 2 matches for "apfloatpayload".

2016 Oct 03
2
[PPC, APFloat] Add full PPCDoubleDouble to APFloat
...nificandParts()? It doesn't make sense to return an array of integerParts for PPCDoubleDouble. Do we examine every call site of significandParts(), and assert/dispatch on fltSemantics? Do we want to build an abstraction between APFloat and the underlying data representation? For example: class APFloatPayload { union Significand { integerPart part; integerPart *parts; } significand; int exponent; public: // *Significand() operations. }; class APFloat { fltSemantics *semantics; fltCategory category; APFloatPayload first; Optional<APFloatPayload> second; // for PPCDoubleDouble };...
2016 Sep 30
2
[PPC, APFloat] Add full PPCDoubleDouble to APFloat
I have found some internal test failures due to the wrong constant folding on ppc_fp128. As documented in APFloat::PPCDoubleDouble, APFloat doesn't support PowerPC double-double correctly < https://github.com/llvm-mirror/llvm/blob/492acdd450bcdf9837494d6da029ed064f14fc33/lib/Support/APFloat.cpp#L74 >. To support this, we need to add a second tuple of (sign, exponent, significand) to