Skip to content

s390x fails run-pass/i128 #49828

Closed
Closed
@cuviper

Description

@cuviper
---- [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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-SystemZTarget: SystemZ processors (s390x)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions