Open
Description
It looks like back in 2013 (b361adb), tests were added for these conversions:
IEEEsingle -> x87DoubleExtended |
x87DoubleExtended -> x87DoubleExtended |
---|---|
APFloat::getSNaN(APFloat::IEEEsingle) |
APFloat::getSNaN(APFloat::x87DoubleExtended) |
APFloat::getQNaN(APFloat::IEEEsingle) |
APFloat::getQNaN(APFloat::x87DoubleExtended) |
The first column (IEEEsingle
NaNs) makes sense, and it fits with the commit description:
APFloat: Make sure that we get a well-formed x87 NaN when converting from a smaller type.
But the second column looks like a mistake - the simplest explanation I can think of is they were meant to be IEEEdouble
(which is still smaller than x87DoubleExtended
, and so it would also fit the commit description) not noops.
cc @d0k