-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
saturating-float-casts test from rustc test suite is panicking #737
Labels
C-bug
Category: This is a bug.
Comments
|
bjorn3
changed the title
saturating-float-casts test from rustc test suite panicking
saturating-float-casts test from rustc test suite is panicking
Oct 2, 2019
Reduced to: // cranelift doesn't inline
fn black_box<T>(a: T) -> T {
a
}
pub fn main() {
assert_eq!(black_box(std::f32::NAN) as i128, 0);
} |
Opened rust-lang/rust#65245 |
Implementing something like: should fix this. Edit(2022-03-25): since moved to https://github.com/rust-lang/rust/blob/4a56cbec59903a830a5fc06c5c81956de4199584/compiler/rustc_codegen_ssa/src/traits/builder.rs#L207-L378 |
Removed from MVP milestone as this is just an edge case. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cc #381
The text was updated successfully, but these errors were encountered: