diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2020-10-31 13:16:14 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2021-03-22 17:02:09 -0700 |
| commit | 74db93ed2d0677bbca8ba85617f05eae745363d8 (patch) | |
| tree | 75be2048eef663446a8c6b32264c4a59c9e9f1d2 /src | |
| parent | 588cc644ad6d6d6419dcd48651ae451557cdc100 (diff) | |
| download | rust-74db93ed2d0677bbca8ba85617f05eae745363d8.tar.gz rust-74db93ed2d0677bbca8ba85617f05eae745363d8.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/mir-opt/funky_arms.float_to_exponential_common.ConstProp.diff | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/mir-opt/funky_arms.float_to_exponential_common.ConstProp.diff b/src/test/mir-opt/funky_arms.float_to_exponential_common.ConstProp.diff index caa02abf019..3a50ed224b5 100644 --- a/src/test/mir-opt/funky_arms.float_to_exponential_common.ConstProp.diff +++ b/src/test/mir-opt/funky_arms.float_to_exponential_common.ConstProp.diff @@ -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 } |
