Skip to content
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

s390x fails run-pass/i128 #49828

Closed
cuviper opened this issue Apr 10, 2018 · 1 comment
Closed

s390x fails run-pass/i128 #49828

cuviper opened this issue Apr 10, 2018 · 1 comment
Labels
C-bug Category: This is a bug. O-SystemZ Target: SystemZ processors (s390x) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@cuviper
Copy link
Member

cuviper commented Apr 10, 2018

---- [run-pass] run-pass/i128.rs stdout ----

error: test run failed!
status: exit code: 101
command: "/home/jistone/rust/build/s390x-unknown-linux-gnu/test/run-pass/i128.stage2-s390x-unknown-linux-gnu"
stdout:
------------------------------------------

------------------------------------------
stderr:
------------------------------------------
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `-207698809054923482737659375`,
 right: `-11259375`', /home/jistone/rust/src/test/run-pass/i128.rs:83:5
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: std::panicking::rust_panic_with_hook
   5: std::panicking::begin_panic_fmt
   6: i128::main
   7: std::rt::lang_start::{{closure}}
   8: std::panicking::try::do_call
   9: __rust_maybe_catch_panic
  10: std::rt::lang_start_internal
  11: main
  12: __libc_start_main
  13: <unknown>

------------------------------------------

That particular assertion is here:

assert_eq!((-z as f32) as i128, -z);

  • z is 0xABCD_EF == 11259375
  • the -z we expected in right was -11259375 == 0xffffffffffffffffffffffffff543211
  • the left we got is 0xffffffffff543210ffffffffff543211
@cuviper cuviper added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-bug Category: This is a bug. O-SystemZ Target: SystemZ processors (s390x) labels Apr 10, 2018
@nikic
Copy link
Contributor

nikic commented Jul 14, 2019

Closing this based on #52983 (comment).

@nikic nikic closed this as completed Jul 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. O-SystemZ Target: SystemZ processors (s390x) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants