-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APFloatTest: convert test accidentally ended up with x87DoubleExtended
-> x87DoubleExtended
noops.
#63842
Comments
It's hard to guess what I did 10 years ago, might be that I wanted to make sure we don't modify the bits on a noop convert. Is this test causing trouble somehow? |
Sadly there's a kind of "two wrongs make a right" situation going on here:
Nothing that significant, it just confused me for long enough (think about what happens if you remove the early-return from The more specific context is that I was updating the C++ -> Rust port of |
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: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 thanx87DoubleExtended
, and so it would also fit the commit description) not noops.cc @d0k
The text was updated successfully, but these errors were encountered: