Skip to content

Commit 356f837

Browse files
committed
Auto merge of rust-lang#138344 - tgross35:x86-f16-math, r=<try>
Enable `reliable_f16_math` on x86 This has been disabled due to an LLVM misoptimization with `powi.f16` [1]. This was fixed upstream and the fix is included in LLVM20, so tests no longer need to be disabled. `f16` still remains disabled on MinGW due to the ABI issue. [1]: llvm/llvm-project#98665 try-job: x86_64-gnu try-job: i686-gnu-1
2 parents 374ce1f + 2b97977 commit 356f837

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

library/std/build.rs

-2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ fn main() {
154154
&& match (target_arch.as_str(), target_os.as_str()) {
155155
// FIXME: Disabled on Miri as the intrinsics are not implemented yet.
156156
_ if is_miri => false,
157-
// x86 has a crash for `powi`: <https://github.com/llvm/llvm-project/issues/105747>
158-
("x86" | "x86_64", _) => false,
159157
// Assume that working `f16` means working `f16` math for most platforms, since
160158
// operations just go through `f32`.
161159
_ => true,

0 commit comments

Comments
 (0)