You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#![feature(f128)]#[no_mangle]fnmul_entry(a:f128,b:f128) -> f128{
a * b
}fnmain(){let a = f128::from_bits(0x00007fffffffffffffffffffffffffff);let b = f128::from_bits(0x40007fffffffffffffffffffffffffff);let c = mul_entry(a, b);dbg!(c);}
Uh oh!
There was an error while loading. Please reload this page.
Still getting to the root of this, discussion started at https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/f128.20system.20libraries.20noncompliant.20platforms
Comparing this Rust code:
Against this C version:
With gcc:
Clang:
Both of those are correct. However, the Rust version is not:
Reproduction with C:
Linking:
This produces the same correct output as above (ending in
c
). However, changing the command to link the rust libraryProduces the same output as Rust, incorrect:
rustc 1.80.0-nightly (6e1d94708 2024-05-10)
The text was updated successfully, but these errors were encountered: