Open
Description
tests/ui/abi/numbers-arithmetic/return-float.rs
currently fails under wasm32-unknown-emscripten
:
---- [ui] tests/ui/abi/numbers-arithmetic/return-float.rs stdout ----
error: test run failed!
status: exit status: 101
command: cd "/home/purplesyringa/rust/build/x86_64-unknown-linux-gnu/test/ui/abi/numbers-arithmetic/return-float" && RUSTC="/home/purplesyringa/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc" RUST_TEST_THREADS="8" "node" "/home/purplesyringa/rust/build/x86_64-unknown-linux-gnu/test/ui/abi/numbers-arithmetic/return-float/a.js"
stdout: none
--- stderr -------------------------------
thread 'main' panicked at /home/purplesyringa/rust/tests/ui/abi/numbers-arithmetic/return-float.rs:25:13:
assertion `left == right` failed
left: 2144687445
right: 2140493141
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
------------------------------------------
This reproduces on 66d6064 on Node v23.6.0. WASI is fine, and I think it uses Node during tests too, so probably not a Node bug.
@rustbot label +A-ABI +A-floating-point +I-miscompile +O-emscripten +T-compiler +E-needs-investigation
Metadata
Metadata
Assignees
Labels
Area: Concerning the application binary interface (ABI)Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Floating point numbers and arithmeticCategory: This is a bug.Issue: Correct Rust code lowers to incorrect machine codeTarget: 50% off wasm32-unknown-musl. the savings come out of stdio.h, but hey, you get SDL!Relevant to the compiler team, which will review and decide on the PR/issue.