rustc_codegen_cranelift
rustc_codegen_cranelift copied to clipboard
libcore num::test_can_not_overflow test fails on AArch64
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
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.
This is indeed fixed on cranelift main now. Just waiting for a new cranelift release.