rustc_codegen_cranelift icon indicating copy to clipboard operation
rustc_codegen_cranelift copied to clipboard

libcore num::test_can_not_overflow test fails on AArch64

Open bjorn3 opened this issue 3 years ago • 2 comments

failures:

---- num::test_can_not_overflow stdout ----
---- num::test_can_not_overflow stderr ----
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `false`,
 right: `true`', num/mod.rs:188:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

bjorn3 avatar Aug 07 '22 16:08 bjorn3

Reduced this down to:

test run
target aarch64

function %numcore(i128) -> b1 {
block0(v0: i128):
    v1 = iconst.i128 0
    v2 = icmp eq v0, v1
    return v2
}
; run: %numcore(36893488147419103231) == false

I'll file an issue with cranelift.

afonso360 avatar Aug 13 '22 09:08 afonso360

This is indeed fixed on cranelift main now. Just waiting for a new cranelift release.

bjorn3 avatar Sep 01 '22 14:09 bjorn3