Preserve signed zero on roundtrip

This commit removes the previous mechanism of differentiating
between "Debug" and "Display" formattings for the sign of -0 so as
to comply with the IEEE 754 standard's requirements on external
character sequences preserving various attributes of a floating
point representation.

In addition, numerous tests are fixed.
This commit is contained in:
Jubilee Young 2020-10-31 13:16:14 -07:00
parent 588cc644ad
commit 74db93ed2d
5 changed files with 102 additions and 200 deletions

View file

@ -51,7 +51,7 @@
}
bb2: {
discriminant(_6) = 2; // scope 1 at $DIR/funky_arms.rs:21:17: 21:41
discriminant(_6) = 1; // scope 1 at $DIR/funky_arms.rs:21:17: 21:41
goto -> bb4; // scope 1 at $DIR/funky_arms.rs:19:16: 22:6
}