diff --git a/testcrate/src/lib.rs b/testcrate/src/lib.rs index 2f1b6787..cc9e7393 100644 --- a/testcrate/src/lib.rs +++ b/testcrate/src/lib.rs @@ -337,14 +337,3 @@ macro_rules! apfloat_fallback { $apfloat_op($($arg),+) }}; } - -// FIXME(f16_f128): MSVC is unable to link the mul and div symbols required for this test. -// `__multf3` is now available in nightly, but `__divtf3` is not yet. Provide a fallback until -// that happens. -#[no_mangle] -#[linkage = "weak"] -#[cfg(target_env = "msvc")] -#[cfg(all(feature = "mangled-names", not(feature = "no-f16-f128")))] -pub extern "C" fn __divtf3(a: f128, b: f128) -> f128 { - compiler_builtins::float::div::__divtf3(a, b) -} diff --git a/testcrate/tests/float_pow.rs b/testcrate/tests/float_pow.rs index c5ed2616..c50b81a4 100644 --- a/testcrate/tests/float_pow.rs +++ b/testcrate/tests/float_pow.rs @@ -68,3 +68,14 @@ pow! { pow! { f128, 1e-36, __powikf2, not(feature = "no-sys-f128"); } + +// FIXME(f16_f128): MSVC is unable to link the mul and div symbols required for this test. +// `__multf3` is now available in nightly, but `__divtf3` is not yet. Provide a fallback until +// that happens. +#[no_mangle] +#[linkage = "weak"] +#[cfg(target_env = "msvc")] +#[cfg(all(feature = "mangled-names", not(feature = "no-f16-f128")))] +pub extern "C" fn __divtf3(a: f128, b: f128) -> f128 { + compiler_builtins::float::div::__divtf3(a, b) +}