Skip to content

Incorrect values from float::signum() when using JIT #7106

@jedestep

Description

@jedestep

This initially showed up in rusti, but compilation with JIT causes issues as well. Given the following program

fn main() {
    let f: f64 = -50 as f64;
    println(a.signum().to_str());
}
$ rustc -Z jit signum.rs
1

This does not occur when compiling with LLVM. My OS is OSX 10.8 and my architecture is x86-64.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions