-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Some MIR dumps differ between little and big endian #79799
Comments
oli-obk
added
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
A-mir-opt
Area: MIR optimizations
labels
Dec 7, 2020
@rustbot claim I would like to give this a try as my first Rust contribution :) |
Dylan-DPC-zz
pushed a commit
to Dylan-DPC-zz/rust
that referenced
this issue
Dec 23, 2020
Refactored verbose print into a function Also handle Tuple and Array separately, which was not explicitly checked. Fixes rust-lang#79799.
Dylan-DPC-zz
pushed a commit
to Dylan-DPC-zz/rust
that referenced
this issue
Dec 24, 2020
Refactored verbose print into a function Also handle Tuple and Array separately, which was not explicitly checked. Fixes rust-lang#79799.
Dylan-DPC-zz
pushed a commit
to Dylan-DPC-zz/rust
that referenced
this issue
Dec 24, 2020
Refactored verbose print into a function Also handle Tuple and Array separately, which was not explicitly checked. Fixes rust-lang#79799.
Dylan-DPC-zz
pushed a commit
to Dylan-DPC-zz/rust
that referenced
this issue
Dec 24, 2020
Refactored verbose print into a function Also handle Tuple and Array separately, which was not explicitly checked. Fixes rust-lang#79799.
Dylan-DPC-zz
pushed a commit
to Dylan-DPC-zz/rust
that referenced
this issue
Dec 25, 2020
Refactored verbose print into a function Also handle Tuple and Array separately, which was not explicitly checked. Fixes rust-lang#79799.
This is still not fixed, I see the test failures still in 1.51 https://buildd.debian.org/status/fetch.php?pkg=rustc&arch=s390x&ver=1.51.0%2Bdfsg1-1%7Eexp2&stamp=1619448544&raw=0 |
e.g. on s390x:
|
we need the same fix (as the one in #79999 ) for mir::Constant |
@rustbot claim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in #77413 it was noted that MIR dumps in our test suite somtimes differ between little and big endian, making our test suite fail on big endian. This is just about MIR pretty printing.
All that needs to be done is to pull out
rust/compiler/rustc_mir/src/util/pretty.rs
Lines 432 to 436 in 5ded394
true
if the verbose printing should be used and then make it recurse onty::Tuple
andty::Array
elements.You can then run rerun tests separately for 64bit and 32bit (the latter via e.g.
--target i686-unknown-linux-gnu
)The text was updated successfully, but these errors were encountered: