Skip to content

APFloatTest: convert test accidentally ended up with x87DoubleExtended -> x87DoubleExtended noops. #63842

Open
@eddyb

Description

@eddyb

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions