Skip to content

libcore num::test_can_not_overflow test fails on AArch64 #1256

Closed
@bjorn3

Description

@bjorn3
Member
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

Activity

added
O-armTarget: ARM processors (arm, thumb and AArch64 targets)
on Aug 7, 2022
afonso360

afonso360 commented on Aug 13, 2022

@afonso360
Contributor

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.

bjorn3

bjorn3 commented on Sep 1, 2022

@bjorn3
MemberAuthor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-armTarget: ARM processors (arm, thumb and AArch64 targets)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @afonso360@bjorn3

      Issue actions

        libcore num::test_can_not_overflow test fails on AArch64 · Issue #1256 · rust-lang/rustc_codegen_cranelift